pgsql: Grammar object type refactoring

Started by Peter Eisentrautabout 6 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Grammar object type refactoring

Unify the grammar of COMMENT, DROP, and SECURITY LABEL further. They
all effectively just take an object address for later processing, so
we can make the grammar more generalized. Some extra checking about
which object types are supported can be done later in the statement
execution.

Discussion: /messages/by-id/163c00a5-f634-ca52-fc7c-0e53deda8735@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a332b366d4fa19ee3578a864993a8dc7abb47177

Modified Files
--------------
src/backend/commands/seclabel.c | 74 ++++++++++++++++++
src/backend/parser/gram.y | 162 ++++++++++++----------------------------
2 files changed, 122 insertions(+), 114 deletions(-)