git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c298660) | patch
Disallow unlogged materialized views.
Mon, 6 May 2013 15:57:05 +0000 (11:57 -0400)
Mon, 6 May 2013 16:00:06 +0000 (12:00 -0400)
commit 3223b25ff737c2bf4a642c0deb7be2b30bfecc6e
Disallow unlogged materialized views.

The initial implementation of this feature was really unsupportable,
because it's relying on the physical size of an on-disk file to carry the
relation's populated/unpopulated state, which is at least a modularity
violation and could have serious long-term consequences. We could say that
an unlogged matview goes to empty on crash, but not everybody likes that
definition, so let's just remove the feature for 9.3. We can add it back
when we have a less klugy implementation.

I left the grammar and tab-completion support for CREATE UNLOGGED
MATERIALIZED VIEW in place, since it's harmless and allows delivering a
more specific error message about the unsupported feature.

I'm committing this separately to ease identification of what should be
reverted when/if we are able to re-enable the feature.
doc/src/sgml/ref/create_materialized_view.sgml diff | blob | blame | history
src/backend/parser/analyze.c diff | blob | blame | history
src/test/regress/expected/matview.out diff | blob | blame | history
src/test/regress/sql/matview.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /