pgsql: Refactor parsing rules for option lists of EXPLAIN, VACUUM and A

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor parsing rules for option lists of EXPLAIN, VACUUM and A
Date: 2020-11-30 11:29:17
Message-ID: E1kjhMr-0001Ap-KX@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor parsing rules for option lists of EXPLAIN, VACUUM and ANALYZE

Those three commands have been using the same grammar rules to handle a
a list of parenthesized options. This refactors the code so as they use
the same parsing rules, shaving some code. A future commit will make
use of those option parsing rules for more utility commands, like
REINDEX and CLUSTER.

Author: Alexey Kondratov, Justin Pryzby
Discussion: https://postgr.es/m/8a8f5f73-00d3-55f8-7583-1375ca8f6a91@postgrespro.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/873ea9ee692e7829614f913685db540b17998ba6

Modified Files
--------------
src/backend/parser/gram.y | 61 +++++++++++------------------------------------
1 file changed, 14 insertions(+), 47 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-11-30 17:23:18 pgsql: Fix miscomputation of direct_lateral_relids for join relations.
Previous Message Heikki Linnakangas 2020-11-30 08:32:25 pgsql: Remove leftover comments, left behind by removal of WITH OIDS.