Refactor parsing rules for option lists of EXPLAIN, VACUUM and ANALYZE
authorMichael Paquier <michael@paquier.xyz>
Mon, 30 Nov 2020 11:27:37 +0000 (20:27 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 30 Nov 2020 11:27:37 +0000 (20:27 +0900)
commit873ea9ee692e7829614f913685db540b17998ba6
tree83f5a81faac02200f3a17bd911756a135cbe7122
parent2bc588798bdd0cdaa8f6cb6713ba8c8cc039fcb1
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
src/backend/parser/gram.y