aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/typecmds.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2013-07-05 15:25:51 -0400
committerNoah Misch <noah@leadboat.com>2013-07-05 15:37:51 -0400
commit02d2b694ee42a9e241d37ce67df122fff43d5bb9 (patch)
treeeaf287ab19600a27a1c1304d108241326d6e3e3d /src/backend/commands/typecmds.c
parent269e780822abb2e44189afaccd6b0ee7aefa7ddd (diff)
downloadpostgresql-02d2b694ee42a9e241d37ce67df122fff43d5bb9.tar.gz
postgresql-02d2b694ee42a9e241d37ce67df122fff43d5bb9.zip
Update messages, comments and documentation for materialized views.
All instances of the verbiage lagging the code. Back-patch to 9.3, where materialized views were introduced.
Diffstat (limited to 'src/backend/commands/typecmds.c')
-rw-r--r--src/backend/commands/typecmds.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c
index 031433d4bbb..d4a14cabff2 100644
--- a/src/backend/commands/typecmds.c
+++ b/src/backend/commands/typecmds.c
@@ -2820,7 +2820,14 @@ get_rels_with_domain(Oid domainOid, LOCKMODE lockmode)
NULL,
format_type_be(domainOid));
- /* Otherwise we can ignore views, composite types, etc */
+ /*
+ * Otherwise, we can ignore relations except those with both
+ * storage and user-chosen column types.
+ *
+ * XXX If an index-only scan could satisfy "col::some_domain" from
+ * a suitable expression index, this should also check expression
+ * index columns.
+ */
if (rel->rd_rel->relkind != RELKIND_RELATION &&
rel->rd_rel->relkind != RELKIND_MATVIEW)
{