diff options
author | Noah Misch <noah@leadboat.com> | 2013-07-05 15:25:51 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2013-07-05 15:37:51 -0400 |
commit | 02d2b694ee42a9e241d37ce67df122fff43d5bb9 (patch) | |
tree | eaf287ab19600a27a1c1304d108241326d6e3e3d /src/backend/commands/typecmds.c | |
parent | 269e780822abb2e44189afaccd6b0ee7aefa7ddd (diff) | |
download | postgresql-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.c | 9 |
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) { |