Content-Length: 292848 | pFad | http://github.com/postgrespro/postgres/commit/2e4c50137a6f96f84d804b41b355e125979e5494

EB Rename pg_shdepend.c's typedef "objectType" to SharedDependencyObject… · postgrespro/postgres@2e4c501 · GitHub
Skip to content

Commit 2e4c501

Browse files
committed
Rename pg_shdepend.c's typedef "objectType" to SharedDependencyObjectType.
The name objectType is widely used as a field name, and it's pure luck that this conflict has not caused pgindent to go crazy before. It messed up pg_audit.c pretty good though. Since pg_shdepend.c doesn't export this typedef and only uses it in three places, changing that seems saner than changing the field usages. Back-patch because we're contemplating using the union of all branch typedefs for future pgindent runs, so this won't fix anything if it stays the same in back branches.
1 parent 2c2c5f0 commit 2e4c501

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/catalog/pg_shdepend.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ typedef enum
6262
LOCAL_OBJECT,
6363
SHARED_OBJECT,
6464
REMOTE_OBJECT
65-
} objectType;
65+
} SharedDependencyObjectType;
6666

6767
static void getOidListDiff(Oid *list1, int *nlist1, Oid *list2, int *nlist2);
6868
static Oid classIdGetDbId(Oid classId);
@@ -79,7 +79,8 @@ static void shdepDropDependency(Relation sdepRel,
7979
bool drop_subobjects,
8080
Oid refclassId, Oid refobjId,
8181
SharedDependencyType deptype);
82-
static void storeObjectDescription(StringInfo descs, objectType type,
82+
static void storeObjectDescription(StringInfo descs,
83+
SharedDependencyObjectType type,
8384
ObjectAddress *object,
8485
SharedDependencyType deptype,
8586
int count);
@@ -1057,7 +1058,8 @@ shdepLockAndCheckObject(Oid classId, Oid objectId)
10571058
* and count to be nonzero; deptype is not used in this case.
10581059
*/
10591060
static void
1060-
storeObjectDescription(StringInfo descs, objectType type,
1061+
storeObjectDescription(StringInfo descs,
1062+
SharedDependencyObjectType type,
10611063
ObjectAddress *object,
10621064
SharedDependencyType deptype,
10631065
int count)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2e4c50137a6f96f84d804b41b355e125979e5494

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy