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:26:46 -0400
commitcf183732d2b2bda2f6fd927481f787ecb1f054fa (patch)
tree46b2c735eb67261eabb2b8a475b5099cd674faf0 /src/backend/commands/typecmds.c
parent462b562ab294dc15d6a578ebf424020f0a54e835 (diff)
downloadpostgresql-cf183732d2b2bda2f6fd927481f787ecb1f054fa.tar.gz
postgresql-cf183732d2b2bda2f6fd927481f787ecb1f054fa.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 6bc16f198e3..e5ec7c17700 100644
--- a/src/backend/commands/typecmds.c
+++ b/src/backend/commands/typecmds.c
@@ -2813,7 +2813,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)
{