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

Commit5057366

Browse files
committed
Unbreak legacy syntax "COMMENT ON RULE x IS y", with no relation name.
check_object_ownership() isn't happy about the null relation pointer.We could fix it there, but this seems more future-proof.
1 parent59414cd commit5057366

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/backend/catalog/objectaddress.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,12 @@ get_object_address_relobject(ObjectType objtype, List *objname,
498498
address.objectId=
499499
get_rewrite_oid_without_relid(depname,&reloid,missing_ok);
500500
address.objectSubId=0;
501+
502+
/*
503+
* Caller is expecting to get back the relation, even though we
504+
* didn't end up using it to find the rule.
505+
*/
506+
relation=heap_open(reloid,AccessShareLock);
501507
}
502508
else
503509
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp