pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Pettus <xof@thebuild.com>
To: Oleg Serov <oleg@slapdash.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Question: Is it possible to get the new xlog position after query execution?
Date: Mon, 8 Nov 2021 09:11:15 -0800
Message-ID: <CF73DC8D-118F-4777-82E4-599EBC0FB64E@thebuild.com> (raw)
In-Reply-To: <CAH2JyMS4mJ+=oR==9Q0otwXSK1bVrFPBRVMbyuktmunJr9Jofg@mail.gmail.com>
References: <CAH2JyMT=UY989a9WNcu_E1OAh7GyM1YDjhKUa-060CAH5uqhuA@mail.gmail.com>
	<YX78rSSOdFuyL9yi@hjp.at>
	<CAH2JyMR+eOAPig4xowOMGm0bMSKXBUh=sTMty4+3vaPXH2iMPQ@mail.gmail.com>
	<YYZsOdU3C5pSZ1um@hjp.at>
	<CAH2JyMS4mJ+=oR==9Q0otwXSK1bVrFPBRVMbyuktmunJr9Jofg@mail.gmail.com>



> On Nov 7, 2021, at 19:42, Oleg Serov <oleg@slapdash.com> 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.




view thread (10+ messages)  latest in thread

Message-ID: <CF73DC8D-118F-4777-82E4-599EBC0FB64E@thebuild.com>
Permalink:  ../CF73DC8D-118F-4777-82E4-599EBC0FB64E@thebuild.com/
Also on:    postgresql.org/message-id/CF73DC8D-118F-4777-82E4-599EBC0FB64E@thebuild.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: xof@thebuild.com, oleg@slapdash.com
  Subject: Re: Question: Is it possible to get the new xlog position after query execution?
  In-Reply-To: <CF73DC8D-118F-4777-82E4-599EBC0FB64E@thebuild.com>
  References: <CAH2JyMT=UY989a9WNcu_E1OAh7GyM1YDjhKUa-060CAH5uqhuA@mail.gmail.com> <YX78rSSOdFuyL9yi@hjp.at> <CAH2JyMR+eOAPig4xowOMGm0bMSKXBUh=sTMty4+3vaPXH2iMPQ@mail.gmail.com> <YYZsOdU3C5pSZ1um@hjp.at> <CAH2JyMS4mJ+=oR==9Q0otwXSK1bVrFPBRVMbyuktmunJr9Jofg@mail.gmail.com> <CF73DC8D-118F-4777-82E4-599EBC0FB64E@thebuild.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox