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 1jLvkY-0006yh-SF for pgsql-committers@arkaria.postgresql.org; Tue, 07 Apr 2020 21:27:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLvkX-0003zU-Gc for pgsql-committers@arkaria.postgresql.org; Tue, 07 Apr 2020 21:27:13 +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 1jLvkX-0003zN-Bc for pgsql-committers@lists.postgresql.org; Tue, 07 Apr 2020 21:27:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLvkQ-0001Eg-Km; Tue, 07 Apr 2020 21:27:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 037LR48v028210; Tue, 7 Apr 2020 17:27:04 -0400 From: Tom Lane To: Alexander Korotkov cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Implement waiting for given lsn at transaction start In-reply-to: References: Comments: In-reply-to Alexander Korotkov message dated "Tue, 07 Apr 2020 20:54:53 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28208.1586294824.1@sss.pgh.pa.us> Date: Tue, 07 Apr 2020 17:27:04 -0400 Message-ID: <28209.1586294824@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. regards, tom lane