mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -2703,7 +2703,7 @@ ExecAlterExtensionContentsStmt(AlterExtensionContentsStmt *stmt)
|
||||
* against concurrent DROP and ALTER EXTENSION ADD/DROP operations.
|
||||
*/
|
||||
object = get_object_address(stmt->objtype, stmt->objname, stmt->objargs,
|
||||
&relation, ShareUpdateExclusiveLock);
|
||||
&relation, ShareUpdateExclusiveLock, false);
|
||||
|
||||
/* Permission check: must own target object, too */
|
||||
check_object_ownership(GetUserId(), stmt->objtype, object,
|
||||
|
Reference in New Issue
Block a user