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

Commit412a429

Browse files
committed
REASSIGN OWNED: consider grants on tablespaces, too
Apparently this was considered in the original code (see commitcec3b0a) but I failed to notice that such entries would always beskipped by the database check at the start of the loop.Per bugs #7578 by Nikolay, #6116 by tushar.qa@gmail.com.
1 parent6c00b2b commit412a429

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/backend/catalog/pg_shdepend.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,12 @@ shdepDropOwned(List *roleids, DropBehavior behavior)
12141214
Form_pg_shdependsdepForm= (Form_pg_shdepend)GETSTRUCT(tuple);
12151215
ObjectAddressobj;
12161216

1217-
/* We only operate on objects in the current database */
1218-
if (sdepForm->dbid!=MyDatabaseId)
1217+
/*
1218+
* We only operate on shared objects and objects in the current
1219+
* database
1220+
*/
1221+
if (sdepForm->dbid!=MyDatabaseId&&
1222+
sdepForm->dbid!=InvalidOid)
12191223
continue;
12201224

12211225
switch (sdepForm->deptype)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp