From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Disallow quorum uncommitted (with synchronous standbys) txns in logical replication subscribers |
Date: | 2022-01-07 22:36:46 |
Message-ID: | 5557f6746ec006741fc73bbab1899c16305bf11f.camel@j-davis.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 2022-01-07 at 12:22 -0800, Andres Freund wrote:
> I don't see how it can *not* cause a major performance / latency
> gotcha. You're deliberately delaying replication after all?
Are there use cases where someone wants sync rep, and also wants their
read replicas to get ahead of the sync rep quorum?
If the use case doesn't exist, it doesn't make sense to talk about how
well it performs.
> another sync replica would still not be guaranteed to be able to
> follow the
> newly promoted primary.
If you only promote the furthest-ahead sync replica (which is what you
should be doing if you have quorum commit), why wouldn't that work?
> To me this just sounds like trying to shoehorn something into syncrep
> that
> it's not made for.
What *is* sync rep made for?
The only justification in the docs is around durability:
"[sync rep] extends that standard level of durability offered by a
transaction commit... [sync rep] can provide a much higher level of
durability..."
If we take that at face value, then it seems logical to say that async
read replicas should not get ahead of sync replicas.
Regards,
Jeff Davis
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2022-01-07 22:46:38 | Re: Add 64-bit XIDs into PostgreSQL 15 |
Previous Message | Peter Geoghegan | 2022-01-07 22:19:45 | Re: Removing more vacuumlazy.c special cases, relfrozenxid optimizations |