Re: Incorrect Syntax in Function Syntax diagram
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: aazamrafeeque0@gmail.com, Pg Docs <pgsql-docs@lists.postgresql.org>
Date: 2021-06-23T15:29:11Z
Lists: pgsql-docs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Wed, Jun 23, 2021 at 6:31 AM PG Doc comments form <noreply@postgresql.org>
> wrote:
> Please separate the [ NOT ] LEAKPROOF from the OR list
> I would agree, and would add that I wonder whether the syntax for the three
> mutually exclusive options should be shown as such instead of having to
> read that in the description notes. Does writing < | { IMMUTABLE | STABLE
> | VOLATILE } > work?
Yeah. The way it's written fails to show, except via formatting,
that IMMUTABLE/STABLE/VOLATILE are mutually exclusive; and then
somebody came along and destroyed the formatting. I agree both
with adding braces and with putting LEAKPROOF on its own line.
The latter is/should be only cosmetic; but the rest of the list
has one line per independent option, and LEAKPROOF is surely
independent of the volatility options.
regards, tom lane
Commits
-
Doc: fix confusion about LEAKPROOF in syntax summaries.
- 9c1c9b071690 10.18 landed
- 9aa06956eaf1 13.4 landed
- 5c22cf0e7339 11.13 landed
- 47018af55ac4 12.8 landed
- 2031e1668e55 14.0 landed
- 16492f5cc346 9.6.23 landed