From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: REINDEX VERBOSE unknown option
Date: Mon, 18 Nov 2019 23:24:52 +0100
Message-ID: <20191118222452.GA31017@hjp.at> (raw)
In-Reply-To: <CAEzk6fd_Bu4=um9PfG+OW4hjZgYzYDOmo0QTFAGzNsLo=n7emA@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>
On 2019-11-18 12:24:40 +0000, Geoff Winkless wrote:
> On Mon, 18 Nov 2019 at 11:46, Michael Paquier <michael@paquier.xyz> wrote:
> > On Mon, Nov 18, 2019 at 10:27:24AM +0100, Josef Šimánek wrote:
> > > This is clear once you understand what does it mean. I was aware of VERBOSE
> > > option of EXPLAIN and tried to use it without needed parentheses (the same
> > > way EXPLAIN can understand it). In the parameter list of REINDEX, it is
> > > still called VERBOSE (not "( VERBOSE )") and there's no info
> > > that parentheses are needed.
[...]
> But if the parentheses are part of the parameter, I think putting the
> parentheses in the parameter list might be a good compromise.
The parentheses aren't part of the parameter. They are part of the
syntax of the command.
It might useful to distinguish better between symbols which must be
typed as shown ("REINDEX", "(", ")", etc. in this case) and those which
describe the grammar ("[", "]", "name" in this case).
Maybe print the square brackets in bold and italics like "name"? But
that is just the opposite of the usual convention.
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.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
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: hjp-pgsql@hjp.at
Subject: Re: REINDEX VERBOSE unknown option
In-Reply-To: <20191118222452.GA31017@hjp.at>
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>
* 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