Make more use of RoleSpec struct Most code was casting this through a generic Node. By declaring everything as RoleSpec appropriately, we can remove a bunch of casts and ad-hoc node type checking.
Reviewed-by: Alvaro Herrera <[email protected]> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/2e254130d1d3f16575f2d72952ab23b4e27d035a Modified Files -------------- src/backend/catalog/aclchk.c | 6 +++--- src/backend/commands/policy.c | 2 +- src/backend/commands/user.c | 12 +++++++----- src/backend/parser/gram.y | 17 +++++++++-------- src/backend/utils/adt/acl.c | 28 ++++++---------------------- src/include/nodes/parsenodes.h | 22 +++++++++++----------- src/include/utils/acl.h | 8 ++++---- 7 files changed, 41 insertions(+), 54 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
