Add comment for the assignment.

pull/7570/head
Xing Guo 2024-04-11 08:00:43 +08:00
parent 2088e251b6
commit 4a8ba2c87c
1 changed files with 7 additions and 1 deletions

View File

@ -483,7 +483,13 @@ AnyObjectViolatesOwnership(DropStmt *dropStmt)
Relation rel = NULL;
objectAddress = get_object_address(objectType, object,
&rel, AccessShareLock, missingOk);
relation = rel;
/*
* The object relation is qualified with volatile and its value is obtained from
* get_object_address(). Unless we can qualify the corresponding parameter of
* get_object_address() with volatile (this is a function defined in PostgreSQL),
* we cannot get rid of this assignment.
*/
relation = rel;
if (OidIsValid(objectAddress.objectId))
{