pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Ivan Kartyshov <i.kartyshov@postgrespro.ru>
Cc: Xuneng Zhou <xunengzhou@gmail.com>
Subject: Re: Should the WAIT FOR command tag be "WAIT" or "WAIT FOR"?
Date: Fri, 28 Aug 2026 16:11:40 -0400
Message-ID: <1591155.1787947900@sss.pgh.pa.us> (raw)
In-Reply-To: <CAD21AoBdtiPTbm7T_aNeDON9JpFG9g=JDUP4WU-Y8t8_xqvR5Q@mail.gmail.com>
References: <CAD21AoBdtiPTbm7T_aNeDON9JpFG9g=JDUP4WU-Y8t8_xqvR5Q@mail.gmail.com>

Masahiko Sawada <sawada.mshk@gmail.com> 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





view thread (7+ messages)  latest in thread

Message-ID: <1591155.1787947900@sss.pgh.pa.us>
Permalink:  ../1591155.1787947900@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1591155.1787947900@sss.pgh.pa.us

 · 

reply

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sawada.mshk@gmail.com, aekorotkov@gmail.com, i.kartyshov@postgrespro.ru, xunengzhou@gmail.com
  Subject: Re: Should the WAIT FOR command tag be "WAIT" or "WAIT FOR"?
  In-Reply-To: <1591155.1787947900@sss.pgh.pa.us>
  References: <CAD21AoBdtiPTbm7T_aNeDON9JpFG9g=JDUP4WU-Y8t8_xqvR5Q@mail.gmail.com> <1591155.1787947900@sss.pgh.pa.us>

* 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