Search Postgresql Archives

Re: PG replicas and transactions atomicity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On Jan 5, 2023, at 19:38, Bhautik Chudasama <bhautikrchudasama@xxxxxxxxx> wrote:
> 
> Does it mean when we commit transaction, client will wait until all replicas successfully committed the transaction.

It depends.  If all the settings are the defaults, no, the client won't wait for the replicas to acknowledge the commit of the transaction.  This is asynchronous replication.

Synchronous replication can be set up, though, in which case the client will wait until some or all of the replicas have reported back that they've committed, depending on how it is configured.  The documentation explains the detailsl:

	https://www.postgresql.org/docs/current/warm-standby.html#SYNCHRONOUS-REPLICATION





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux