Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit20bc354

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 thatthis conflict has not caused pgindent to go crazy before. It messed uppg_audit.c pretty good though. Since pg_shdepend.c doesn't export thistypedef and only uses it in three places, changing that seems saner thanchanging the field usages.Back-patch because we're contemplating using the union of all branchtypedefs for future pgindent runs, so this won't fix anything if itstays the same in back branches.
1 parent9b74f32 commit20bc354

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
@@ -67,7 +67,7 @@ typedef enum
6767
LOCAL_OBJECT,
6868
SHARED_OBJECT,
6969
REMOTE_OBJECT
70-
}objectType;
70+
}SharedDependencyObjectType;
7171

7272
staticvoidgetOidListDiff(Oid*list1,int*nlist1,Oid*list2,int*nlist2);
7373
staticOidclassIdGetDbId(OidclassId);
@@ -84,7 +84,8 @@ static void shdepDropDependency(Relation sdepRel,
8484
booldrop_subobjects,
8585
OidrefclassId,OidrefobjId,
8686
SharedDependencyTypedeptype);
87-
staticvoidstoreObjectDescription(StringInfodescs,objectTypetype,
87+
staticvoidstoreObjectDescription(StringInfodescs,
88+
SharedDependencyObjectTypetype,
8889
ObjectAddress*object,
8990
SharedDependencyTypedeptype,
9091
intcount);
@@ -1062,7 +1063,8 @@ shdepLockAndCheckObject(Oid classId, Oid objectId)
10621063
* and count to be nonzero; deptype is not used in this case.
10631064
*/
10641065
staticvoid
1065-
storeObjectDescription(StringInfodescs,objectTypetype,
1066+
storeObjectDescription(StringInfodescs,
1067+
SharedDependencyObjectTypetype,
10661068
ObjectAddress*object,
10671069
SharedDependencyTypedeptype,
10681070
intcount)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp