Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x02va-004Q1y-2W for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 20:11:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x02vZ-009L6G-27 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 20:11:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x02vZ-009L67-1D for pgsql-hackers@lists.postgresql.org; Fri, 28 Aug 2026 20:11:53 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x02vW-00000001m5k-1cll for pgsql-hackers@postgresql.org; Fri, 28 Aug 2026 20:11:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 67SKBeHA1591156; Fri, 28 Aug 2026 16:11:40 -0400 From: Tom Lane To: Masahiko Sawada cc: PostgreSQL-development , Alexander Korotkov , Ivan Kartyshov , Xuneng Zhou Subject: Re: Should the WAIT FOR command tag be "WAIT" or "WAIT FOR"? In-reply-to: References: Comments: In-reply-to Masahiko Sawada message dated "Fri, 28 Aug 2026 12:58:18 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1591154.1787947900.1@sss.pgh.pa.us> Date: Fri, 28 Aug 2026 16:11:40 -0400 Message-ID: <1591155.1787947900@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Masahiko Sawada writes: > While reviewing a patch for the WAIT FOR command I noticed that its > command tag is "WAIT" rather than "WAIT FOR". I could not find this > discussed in the main thread, although I have not read all of them, so > I might miss something. I want to confirm it because a command tag is > not something we can revisit later when we release v19.0. I think it's fine. The FOR is a noise word that's useful only to make the command's grammar vaguely resemble English. For precedent, consider INSERT, which must have INTO but that's not part of the command tag. > Strictly the same rule would argue for > "WAIT FOR LSN", but "WAIT FOR" is the name the manual gives the > command, and it leaves room if other things become waitable in the > future. If anything, I'd change the manual. "WAIT FOR" is neither short nor a useful description of what's being waited for. Either "WAIT" or "WAIT FOR LSN" would be more plausible as a page heading. regards, tom lane