From: David G. Johnston <david.g.johnston@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alexander Korotkov <akorotkov@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Implement waiting for given lsn at transaction start
Date: Tue, 7 Apr 2020 14:45:59 -0700
Message-ID: <CAKFQuwYSscfbDNtQWHZY7Pin5WNPk1g7Z0qs_AfncVndeCOwLA@mail.gmail.com> (raw)
In-Reply-To: <28209.1586294824@sss.pgh.pa.us>
References: <E1jLvFF-00017n-Cn@gemulon.postgresql.org>
<28209.1586294824@sss.pgh.pa.us>
On Tue, Apr 7, 2020 at 2:27 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alexander Korotkov <akorotkov@postgresql.org> writes:
> > Implement waiting for given lsn at transaction start
> > This commit adds following optional clause to BEGIN and START TRANSACTION
> > commands.
> > WAIT FOR LSN lsn [ TIMEOUT timeout ]
>
> This seems like a really carelessly chosen syntax --- *three* new
> keywords, when you probably didn't need any. Are you not aware that
> there is distributed overhead in the grammar for every keyword?
> Plus, each new keyword carries the risk of breaking existing
> applications, since it no longer works as an alias-not-preceded-by-AS.
>
> I have no particular opinion on the value of the feature, but I wish
> a different syntax had been chosen.
>
I was curious whether the syntax got this kind of discussion, followed the
discussion link, and the last email seen reads:
"""
> Worse, it was marked Needs Review even though no new patch was provided.
>
> I'm going to set this back to Returned with Feedback. If anyone has a
good
> reason that it should be in the CF we can always revive it.
+1.
"""
While there is lots of discussion it ended up with the thread at "returned
with feedback" (a month ago) and now we have a commit. There seems to be
other relevant discussion not linked to.
David J.
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-committers@postgresql.org
Cc: david.g.johnston@gmail.com, tgl@sss.pgh.pa.us, akorotkov@postgresql.org
Subject: Re: pgsql: Implement waiting for given lsn at transaction start
In-Reply-To: <CAKFQuwYSscfbDNtQWHZY7Pin5WNPk1g7Z0qs_AfncVndeCOwLA@mail.gmail.com>
References: <E1jLvFF-00017n-Cn@gemulon.postgresql.org> <28209.1586294824@sss.pgh.pa.us> <CAKFQuwYSscfbDNtQWHZY7Pin5WNPk1g7Z0qs_AfncVndeCOwLA@mail.gmail.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