From: Michael Paquier <michael@paquier.xyz>
To: Geoff Winkless <pgsqladmin@geoff.dj>
Cc: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: REINDEX VERBOSE unknown option
Date: Wed, 20 Nov 2019 12:59:30 +0900
Message-ID: <20191120035930.GB4243@paquier.xyz> (raw)
In-Reply-To: <CAEzk6fdTvUjC4cPfcRp0KQDNs=fzW3MYxnzbhAXrPq8ZQGrpRQ@mail.gmail.com>
References: <CAFp7QwqWeuDTHkeea7rMgdigyWb-ON2KQ=M0ho=X6G3RZEY4nQ@mail.gmail.com>
<CAFp7QwrV1GR8ZfNVubRGg9NOHCOfLc4gmpu1Fa3Lf3s69MRg+w@mail.gmail.com>
<CAFj8pRCrUS+eMFvssVPGZN-VDEMP3XN+1Dop0=CmeBq2D+dqOg@mail.gmail.com>
<20191118064210.GD1543@paquier.xyz>
<CAFp7Qwox9VyKe21BUTsJ-tY7mAcWkD42L7PS8+pqE_b8_pRmzg@mail.gmail.com>
<20191118114608.GE1543@paquier.xyz>
<CAEzk6fd_Bu4=um9PfG+OW4hjZgYzYDOmo0QTFAGzNsLo=n7emA@mail.gmail.com>
<20191118222452.GA31017@hjp.at>
<CAEzk6fdTvUjC4cPfcRp0KQDNs=fzW3MYxnzbhAXrPq8ZQGrpRQ@mail.gmail.com>
On Tue, Nov 19, 2019 at 11:37:04AM +0000, Geoff Winkless wrote:
> It's bad enough that you have the inconsistency that REINDEX VERBOSE
> requires parentheses while the more recent REINDEX CONCURRENTLY does
> not (presumably to match the syntax of CREATE INDEX CONCURRENTLY),
> without insisting that the user parse the difference between { and (
> in the manual (not the easiest difference to scan) before they can use
> the command.
The first implementations of REINDEX CONCURRENTLY used the existing
grammar. There was also a discussion when the feature was close to
commit about exactly that and I preferred the parenthesis option.
Who won t the end? Consistency with the existing grammar for
CREATE/DROP INDEX here.
>> How about this?
>>
>> * Terminals (stuff that has to be typed as shown) in bold.
>>
>> * Non-Terminals (stuff which has to be replaced) in italic.
>>
>> * Meta-characters ([, ], |, ...) in regular type.
>
> Even if you do that you're still requiring the user to parse syntax
> according to esoteric rules. I'm not sure that changing the rules
> helps that much.
This does not concern only the page for REINDEX. Perhaps this could
be improved, but I am not sure how and particularly if changing it is
worth it as many people are used to the existing way of presenting the
commands synopsis as well.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-general@postgresql.org
Cc: michael@paquier.xyz, pgsqladmin@geoff.dj, hjp-pgsql@hjp.at
Subject: Re: REINDEX VERBOSE unknown option
In-Reply-To: <20191120035930.GB4243@paquier.xyz>
References: <CAFp7QwqWeuDTHkeea7rMgdigyWb-ON2KQ=M0ho=X6G3RZEY4nQ@mail.gmail.com> <CAFp7QwrV1GR8ZfNVubRGg9NOHCOfLc4gmpu1Fa3Lf3s69MRg+w@mail.gmail.com> <CAFj8pRCrUS+eMFvssVPGZN-VDEMP3XN+1Dop0=CmeBq2D+dqOg@mail.gmail.com> <20191118064210.GD1543@paquier.xyz> <CAFp7Qwox9VyKe21BUTsJ-tY7mAcWkD42L7PS8+pqE_b8_pRmzg@mail.gmail.com> <20191118114608.GE1543@paquier.xyz> <CAEzk6fd_Bu4=um9PfG+OW4hjZgYzYDOmo0QTFAGzNsLo=n7emA@mail.gmail.com> <20191118222452.GA31017@hjp.at> <CAEzk6fdTvUjC4cPfcRp0KQDNs=fzW3MYxnzbhAXrPq8ZQGrpRQ@mail.gmail.com> <20191120035930.GB4243@paquier.xyz>
* 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