aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-02-25 13:40:12 -0500
committerRobert Haas <rhaas@postgresql.org>2014-02-25 13:40:12 -0500
commitcf6aa68bbd78e3119d5156616b474fea47e10a33 (patch)
tree4f0cc38166b588860d2f06d4ba8a853c87716417
parentdd1a3bccca241a998b4ebf39d67202698e5fa599 (diff)
downloadpostgresql-cf6aa68bbd78e3119d5156616b474fea47e10a33.tar.gz
postgresql-cf6aa68bbd78e3119d5156616b474fea47e10a33.zip
Update a few comments to mention materialized views.
Etsuro Fujita
-rw-r--r--src/backend/commands/tablecmds.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index fe0c0aca291..1de31702493 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -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);