pgsql: Replace GrantObjectType with ObjectType

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Replace GrantObjectType with ObjectType
Date: 2018-01-19 19:21:14
Message-ID: E1eccDy-00044X-Uk@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Replace GrantObjectType with ObjectType

There used to be a lot of different *Type and *Kind symbol groups to
address objects within different commands, most of which have been
replaced by ObjectType, starting with
b256f2426433c56b4bea3a8102757749885b81ba. But this conversion was never
done for the ACL commands until now.

This change ends up being just a plain replacement of the types and
symbols, without any code restructuring needed, except deleting some now
redundant code.

Reviewed-by: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Reviewed-by: Stephen Frost <sfrost(at)snowman(dot)net>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2c6f37ed62114bd5a092c20fe721bd11b3bcb91e

Modified Files
--------------
src/backend/catalog/aclchk.c | 244 +++++++++++++++++------------------
src/backend/catalog/heap.c | 4 +-
src/backend/catalog/pg_namespace.c | 2 +-
src/backend/catalog/pg_proc.c | 2 +-
src/backend/catalog/pg_type.c | 2 +-
src/backend/commands/event_trigger.c | 185 +++++++++++++++-----------
src/backend/parser/gram.y | 54 ++++----
src/backend/tcop/utility.c | 2 +-
src/backend/utils/adt/acl.c | 58 ++++-----
src/include/commands/event_trigger.h | 1 -
src/include/nodes/parsenodes.h | 21 +--
src/include/tcop/deparse_utility.h | 2 +-
src/include/utils/acl.h | 6 +-
src/include/utils/aclchk_internal.h | 4 +-
14 files changed, 302 insertions(+), 285 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2018-01-19 20:01:04 pgsql: Fix CompareIndexInfo's attnum comparisons
Previous Message Alvaro Herrera 2018-01-19 19:10:16 Re: pgsql: Local partitioned indexes