Grammar object type refactoring
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 13 Jun 2020 07:03:28 +0000 (09:03 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 13 Jun 2020 07:19:30 +0000 (09:19 +0200)
commita332b366d4fa19ee3578a864993a8dc7abb47177
tree66c5aa2e051493238637c8b1d9bcb82c8c951685
parente78900afd217fa3eaa77c51e23a94c1466af421c
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: https://www.postgresql.org/message-id/flat/163c00a5-f634-ca52-fc7c-0e53deda8735%402ndquadrant.com
src/backend/commands/seclabel.c
src/backend/parser/gram.y