Update a few comments to mention materialized views.
Etsuro Fujita
This commit is contained in:
parent
dd1a3bccca
commit
cf6aa68bbd
@ -2470,7 +2470,8 @@ RenameConstraint(RenameStmt *stmt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Execute ALTER TABLE/INDEX/SEQUENCE/VIEW/FOREIGN TABLE RENAME
|
* Execute ALTER TABLE/INDEX/SEQUENCE/VIEW/MATERIALIZED VIEW/FOREIGN TABLE
|
||||||
|
* RENAME
|
||||||
*/
|
*/
|
||||||
Oid
|
Oid
|
||||||
RenameRelation(RenameStmt *stmt)
|
RenameRelation(RenameStmt *stmt)
|
||||||
@ -2478,8 +2479,9 @@ RenameRelation(RenameStmt *stmt)
|
|||||||
Oid relid;
|
Oid relid;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Grab an exclusive lock on the target table, index, sequence or view,
|
* Grab an exclusive lock on the target table, index, sequence, view,
|
||||||
* which we will NOT release until end of transaction.
|
* materialized view, or foreign table, which we will NOT release until
|
||||||
|
* end of transaction.
|
||||||
*
|
*
|
||||||
* Lock level used here should match RenameRelationInternal, to avoid lock
|
* Lock level used here should match RenameRelationInternal, to avoid lock
|
||||||
* escalation.
|
* escalation.
|
||||||
@ -2522,8 +2524,9 @@ RenameRelationInternal(Oid myrelid, const char *newrelname, bool is_internal)
|
|||||||
Oid namespaceId;
|
Oid namespaceId;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Grab an exclusive lock on the target table, index, sequence or view,
|
* Grab an exclusive lock on the target table, index, sequence, view,
|
||||||
* which we will NOT release until end of transaction.
|
* materialized view, or foreign table, which we will NOT release until
|
||||||
|
* end of transaction.
|
||||||
*/
|
*/
|
||||||
targetrelation = relation_open(myrelid, AccessExclusiveLock);
|
targetrelation = relation_open(myrelid, AccessExclusiveLock);
|
||||||
namespaceId = RelationGetNamespace(targetrelation);
|
namespaceId = RelationGetNamespace(targetrelation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user