Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLw39-0007Sk-3F for pgsql-committers@arkaria.postgresql.org; Tue, 07 Apr 2020 21:46:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLw37-0008FQ-QS for pgsql-committers@arkaria.postgresql.org; Tue, 07 Apr 2020 21:46:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLw37-0008FJ-Ik for pgsql-committers@lists.postgresql.org; Tue, 07 Apr 2020 21:46:25 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jLw30-0001OI-Tc for pgsql-committers@lists.postgresql.org; Tue, 07 Apr 2020 21:46:24 +0000 Received: by mail-pl1-x644.google.com with SMTP id a23so1750523plm.1 for ; Tue, 07 Apr 2020 14:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bwR9+sjmDvpLaxE2kzUij8qTNzRakv416iB7Swp3BGk=; b=CZwCFtPvulsf5n+WgliH7nF2RyRdhMbLq72z5opV0+iAHaqm2Ha7e7lQLXi+3zrqHF p53biT8DO0O4ijTtVG/yAYwLfYYhDZeDHrd9CCVU1UVM297cL4mLRTv1ZiApqY6ux7va HrgdapRSfzzGKTVPrqR7fX0f57pqt5LaCoIjdVcliC9PvCN74mEHnQEZ+0+wsebWFtOi +XQS5sUnkXUkOR5Mqe/Zr0t0Ir5aI0wS7DNkNq3Q3QNpLveroAYHqfj+Z4JACpjBNCLD OdtXQkCQG29NmWbB96Q+8Mhph5ykneAR7aQxA/tfT/xJmveBCOBAb8YVyjlA1WdM9Cup cs9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bwR9+sjmDvpLaxE2kzUij8qTNzRakv416iB7Swp3BGk=; b=X15WFj6GAg/21u2MGqD/G40hrEUTIlENdNU187jbW1AS8MB5IwSidBuHifnJOY7rai myXnuvrUzzN0X4ciSIZo3F1XmVIa6s+YxMjXHj1ltfA6ytOW+DfbAesFuL3Fg51UNfsO w26UmDeKzzamx+0MdiKaqlrVKcn5n/kyjq+I/b8m/suPoIsy/IGtp0tkpB6lGtmrNq0e UTE8HFVy6bjAITxGGxcmAL2QY6c34cWPjmVpxEkuZsC3uXejchTpcic9CKJONPFkRq3L e9bMS4IhcfhSqh30Z5cteOB2CyKHD17DdQuqammk2R6OV9XsQOpZzH+ezQyGi9Jk57h7 tjeQ== X-Gm-Message-State: AGi0Pua9P6rLzmJNlTLMeYM2JJ4OC2ETTvLQwmWM/aSiFeUuDmNCvEZ2 nu3GH2nwd9ldcKfLf68w8coIIlogi7xXe/ly7Vdl6zeIWZg= X-Google-Smtp-Source: APiQypLQWYnvXzOOgVxoCayhiaa1mrOUvXFoeESGi5NPv8QKYSDE3bfwpQcOdxwvlcU1UNH56GC+9Nn2fmzMFe67gTo= X-Received: by 2002:a17:90a:2307:: with SMTP id f7mr1515167pje.152.1586295976213; Tue, 07 Apr 2020 14:46:16 -0700 (PDT) MIME-Version: 1.0 References: <28209.1586294824@sss.pgh.pa.us> In-Reply-To: <28209.1586294824@sss.pgh.pa.us> From: "David G. Johnston" Date: Tue, 7 Apr 2020 14:45:59 -0700 Message-ID: Subject: Re: pgsql: Implement waiting for given lsn at transaction start To: Tom Lane Cc: Alexander Korotkov , pgsql-committers@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000002bc0a805a2ba50f5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000002bc0a805a2ba50f5 Content-Type: text/plain; charset="UTF-8" On Tue, Apr 7, 2020 at 2:27 PM Tom Lane wrote: > Alexander Korotkov 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. --0000000000002bc0a805a2ba50f5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 TRANSACT= ION
> commands.
>=C2=A0 =C2=A0WAIT FOR LSN lsn [ TIMEOUT timeout ]

This seems like a really carelessly chosen syntax --- *three* new
keywords, when you probably didn't need any.=C2=A0 Are you not aware th= at
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 discu= ssion 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 Fe= edback.=C2=A0 If anyone has a good
> reason that it should be in the = CF we can always revive it.

+1.
&= quot;""

While there is lots of discussion it= ended up with the thread at "returned with feedback" (a month ag= o) and now we have a commit.=C2=A0 There seems to be other relevant discuss= ion not linked to.

David J.
--0000000000002bc0a805a2ba50f5--