pgsql: Replace GrantObjectType with ObjectType - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Replace GrantObjectType with ObjectType
Date
Msg-id E1eccDy-00044X-Uk@gemulon.postgresql.org
Whole thread Raw
List 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.paquier@gmail.com>
Reviewed-by: Stephen Frost <sfrost@snowman.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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Local partitioned indexes
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Fix CompareIndexInfo's attnum comparisons