mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Add a missing_ok argument to get_object_address().
This lays the groundwork for an upcoming patch to streamline the handling of DROP commands. KaiGai Kohei
This commit is contained in:
@@ -69,7 +69,7 @@ CommentObject(CommentStmt *stmt)
|
||||
* against concurrent DROP operations.
|
||||
*/
|
||||
address = get_object_address(stmt->objtype, stmt->objname, stmt->objargs,
|
||||
&relation, ShareUpdateExclusiveLock);
|
||||
&relation, ShareUpdateExclusiveLock, false);
|
||||
|
||||
/* Require ownership of the target object. */
|
||||
check_object_ownership(GetUserId(), stmt->objtype, address,
|
||||
|
Reference in New Issue
Block a user