From: Anna Akenteva <a.akenteva@postgrespro.ru>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: a.korotkov@postgrespro.ru
Cc: i.kartyshov@postgrespro.ru
Cc: amit.kapila16@gmail.com
Cc: pgsql-hackers@lists.postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed
Date: Wed, 08 Apr 2020 22:36:28 +0300
Message-ID: <d3ff2e363af60b345f82396992595a03@postgrespro.ru> (raw)
In-Reply-To: <20200408.100945.375702947246835193.horikyota.ntt@gmail.com>
References: <CAPpHfdt-_MZkW2eJHP_cQsPkZVH-nF4rt6gLEj+V2XnM+2ZPiw@mail.gmail.com>
<ccdc6c31218f61a2970c84cc850c8a41@postgrespro.ru>
<CAPpHfdsAFR9M2oqadn4q8AeJt5ZX0uvbdQCwTOHtrEL+_OxvBw@mail.gmail.com>
<20200408.100945.375702947246835193.horikyota.ntt@gmail.com>
On 2020-04-08 04:09, Kyotaro Horiguchi wrote:
> How about something like the follows.
>
> BEGIN AFTER ColId Sconst
> BEGIN FOLOWING ColId Sconst
>
> UNTIL <absolute time>;
> LIMIT BY <interval>;
> WITHIN Iconst;
>
> regards.
I like your suggested keywords! I think that "AFTER" + "WITHIN" sound
the most natural. We could completely give up the LSN keyword for now.
The final command could look something like:
BEGIN AFTER ‘0/303EC60’ WITHIN '5 seconds';
or
BEGIN AFTER ‘0/303EC60’ WITHIN 5000;
I'd like to hear others' opinions on the syntax as well.
--
Anna Akenteva
Postgres Professional:
The Russian Postgres Company
http://www.postgrespro.com
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: a.akenteva@postgrespro.ru, horikyota.ntt@gmail.com, a.korotkov@postgrespro.ru, i.kartyshov@postgrespro.ru, amit.kapila16@gmail.com, pgsql-hackers@lists.postgresql.org, tgl@sss.pgh.pa.us
Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed
In-Reply-To: <d3ff2e363af60b345f82396992595a03@postgrespro.ru>
* 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