Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Update a few comments to mention materialized views.
authorRobert Haas <rhaas@postgresql.org>
Tue, 25 Feb 2014 18:40:12 +0000 (13:40 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 25 Feb 2014 18:40:12 +0000 (13:40 -0500)
Etsuro Fujita

src/backend/commands/tablecmds.c

index fe0c0aca2914fe1f7231392c9b0510aa17cc517e..1de3170249390b977db712fe79bf307d160ea8b8 100644 (file)
@@ -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
 RenameRelation(RenameStmt *stmt)
@@ -2478,8 +2479,9 @@ RenameRelation(RenameStmt *stmt)
    Oid         relid;
 
    /*
-    * Grab an exclusive lock on the target table, index, sequence or view,
-    * which we will NOT release until end of transaction.
+    * Grab an exclusive lock on the target table, index, sequence, view,
+    * materialized view, or foreign table, which we will NOT release until
+    * end of transaction.
     *
     * Lock level used here should match RenameRelationInternal, to avoid lock
     * escalation.
@@ -2522,8 +2524,9 @@ RenameRelationInternal(Oid myrelid, const char *newrelname, bool is_internal)
    Oid         namespaceId;
 
    /*
-    * Grab an exclusive lock on the target table, index, sequence or view,
-    * which we will NOT release until end of transaction.
+    * Grab an exclusive lock on the target table, index, sequence, view,
+    * materialized view, or foreign table, which we will NOT release until
+    * end of transaction.
     */
    targetrelation = relation_open(myrelid, AccessExclusiveLock);
    namespaceId = RelationGetNamespace(targetrelation);