Search Postgresql Archives

Re: Question: Is it possible to get the new xlog position after query execution?

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

 





On Mon, Nov 8, 2021 at 12:12 PM Christophe Pettus <xof@xxxxxxxxxxxx> wrote:


> On Nov 7, 2021, at 19:42, Oleg Serov <oleg@xxxxxxxxxxxx> wrote:
> How would you accomplish this otherwise?

Synchronous commit.  It sounds like you are attempting to build the same kind of guarantees that synchronous commit provides, only in the application by polling LSNs.  It might be best just to use synchronous commit, so that you know that once the transaction is committed, the secondary has it.
That does not seem to be feasible for our application. Using synchronous commit affects performance and really makes replication not really useful... What we want to achieve is to have a consistent DB state across all connections for master and replica per user. If other users see something outdated, is OK.  

[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