Support parenthesized syntax for CLUSTER without a table name.
authorNathan Bossart <nathan@postgresql.org>
Wed, 19 Jul 2023 22:26:52 +0000 (15:26 -0700)
committerNathan Bossart <nathan@postgresql.org>
Wed, 19 Jul 2023 22:26:52 +0000 (15:26 -0700)
commitcdaedfc96d1488069518d42479125ceb9a5e67d0
treeb9cb79dabfd327e1563b1a2dc0bdd5599e268aa4
parent018b61f81b4aa3c85e2d671d056681ff5c765475
Support parenthesized syntax for CLUSTER without a table name.

b5913f6120 added a parenthesized syntax for CLUSTER, but it
requires specifying a table name.  This is unlike commands such as
VACUUM and ANALYZE, which do not require specifying a table in the
parenthesized syntax.  This change resolves this inconsistency.
This is preparatory work for a follow-up commit that will move the
unparenthesized syntax to the "Compatibility" section of the
CLUSTER documentation.

Reviewed-by: Melanie Plageman, Michael Paquier
Discussion: https://postgr.es/m/CAAKRu_bc5uHieG1976kGqJKxyWtyQt9yvktjsVX%2Bi7NOigDjOA%40mail.gmail.com
doc/src/sgml/ref/cluster.sgml
src/backend/parser/gram.y