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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b15a6da) | patch
Add a materialized view relations.
Mon, 4 Mar 2013 00:23:31 +0000 (18:23 -0600)
Mon, 4 Mar 2013 00:23:31 +0000 (18:23 -0600)
commit 3bf3ab8c563699138be02f9dc305b7b77a724307
Add a materialized view relations.

A materialized view has a rule just like a view and a heap and
other physical properties like a table. The rule is only used to
populate the table, references in queries refer to the
materialized data.

This is a minimal implementation, but should still be useful in
many cases. Currently data is only populated "on demand" by the
CREATE MATERIALIZED VIEW and REFRESH MATERIALIZED VIEW statements.
It is expected that future releases will add incremental updates
with various timings, and that a more refined concept of defining
what is "fresh" data will be developed. At some point it may even
be possible to have queries use a materialized in place of
references to underlying tables, but that requires the other
above-mentioned features to be working first.

Much of the documentation work by Robert Haas.
Review by Noah Misch, Thom Brown, Robert Haas, Marko Tiikkaja
Security review by KaiGai Kohei, with a decision on how best to
implement sepgsql still pending.
103 files changed:
contrib/oid2name/oid2name.c diff | blob | blame | history
contrib/pg_upgrade/info.c diff | blob | blame | history
contrib/pg_upgrade/pg_upgrade.c diff | blob | blame | history
contrib/pg_upgrade/version_old_8_3.c diff | blob | blame | history
contrib/pgstattuple/pgstattuple.c diff | blob | blame | history
contrib/vacuumlo/vacuumlo.c diff | blob | blame | history
doc/src/sgml/catalogs.sgml diff | blob | blame | history
doc/src/sgml/func.sgml diff | blob | blame | history
doc/src/sgml/ref/allfiles.sgml diff | blob | blame | history
doc/src/sgml/ref/alter_extension.sgml diff | blob | blame | history
doc/src/sgml/ref/alter_materialized_view.sgml [new file with mode: 0644] blob
doc/src/sgml/ref/comment.sgml diff | blob | blame | history
doc/src/sgml/ref/create_index.sgml diff | blob | blame | history
doc/src/sgml/ref/create_materialized_view.sgml [new file with mode: 0644] blob
doc/src/sgml/ref/create_table_as.sgml diff | blob | blame | history
doc/src/sgml/ref/create_view.sgml diff | blob | blame | history
doc/src/sgml/ref/drop_materialized_view.sgml [new file with mode: 0644] blob
doc/src/sgml/ref/refresh_materialized_view.sgml [new file with mode: 0644] blob
doc/src/sgml/ref/security_label.sgml diff | blob | blame | history
doc/src/sgml/reference.sgml diff | blob | blame | history
doc/src/sgml/rules.sgml diff | blob | blame | history
src/backend/access/common/reloptions.c diff | blob | blame | history
src/backend/access/heap/heapam.c diff | blob | blame | history
src/backend/access/heap/tuptoaster.c diff | blob | blame | history
src/backend/catalog/aclchk.c diff | blob | blame | history
src/backend/catalog/dependency.c diff | blob | blame | history
src/backend/catalog/heap.c diff | blob | blame | history
src/backend/catalog/objectaddress.c diff | blob | blame | history
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/catalog/toasting.c diff | blob | blame | history
src/backend/commands/Makefile diff | blob | blame | history
src/backend/commands/alter.c diff | blob | blame | history
src/backend/commands/analyze.c diff | blob | blame | history
src/backend/commands/cluster.c diff | blob | blame | history
src/backend/commands/comment.c diff | blob | blame | history
src/backend/commands/copy.c diff | blob | blame | history
src/backend/commands/createas.c diff | blob | blame | history
src/backend/commands/event_trigger.c diff | blob | blame | history
src/backend/commands/explain.c diff | blob | blame | history
src/backend/commands/indexcmds.c diff | blob | blame | history
src/backend/commands/matview.c [new file with mode: 0644] blob
src/backend/commands/prepare.c diff | blob | blame | history
src/backend/commands/seclabel.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/commands/typecmds.c diff | blob | blame | history
src/backend/commands/vacuum.c diff | blob | blame | history
src/backend/commands/view.c diff | blob | blame | history
src/backend/executor/execMain.c diff | blob | blame | history
src/backend/executor/spi.c diff | blob | blame | history
src/backend/nodes/copyfuncs.c diff | blob | blame | history
src/backend/nodes/equalfuncs.c diff | blob | blame | history
src/backend/nodes/outfuncs.c diff | blob | blame | history
src/backend/nodes/readfuncs.c diff | blob | blame | history
src/backend/optimizer/plan/planner.c diff | blob | blame | history
src/backend/optimizer/util/plancat.c diff | blob | blame | history
src/backend/parser/analyze.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/parser/parse_utilcmd.c diff | blob | blame | history
src/backend/postmaster/autovacuum.c diff | blob | blame | history
src/backend/postmaster/pgstat.c diff | blob | blame | history
src/backend/rewrite/rewriteDefine.c diff | blob | blame | history
src/backend/rewrite/rewriteDefine.c.orig [new file with mode: 0644] blob
src/backend/rewrite/rewriteHandler.c diff | blob | blame | history
src/backend/storage/lmgr/predicate.c diff | blob | blame | history
src/backend/tcop/dest.c diff | blob | blame | history
src/backend/tcop/utility.c diff | blob | blame | history
src/backend/utils/adt/dbsize.c diff | blob | blame | history
src/backend/utils/adt/xml.c diff | blob | blame | history
src/backend/utils/cache/relcache.c diff | blob | blame | history
src/bin/initdb/initdb.c diff | blob | blame | history
src/bin/pg_dump/common.c diff | blob | blame | history
src/bin/pg_dump/pg_backup_archiver.c diff | blob | blame | history
src/bin/pg_dump/pg_dump.c diff | blob | blame | history
src/bin/pg_dump/pg_dump.h diff | blob | blame | history
src/bin/pg_dump/pg_dump_sort.c diff | blob | blame | history
src/bin/psql/command.c diff | blob | blame | history
src/bin/psql/describe.c diff | blob | blame | history
src/bin/psql/help.c diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
src/include/catalog/heap.h diff | blob | blame | history
src/include/catalog/pg_class.h diff | blob | blame | history
src/include/catalog/pg_proc.h diff | blob | blame | history
src/include/commands/createas.h diff | blob | blame | history
src/include/commands/explain.h diff | blob | blame | history
src/include/commands/matview.h [new file with mode: 0644] blob
src/include/commands/tablecmds.h diff | blob | blame | history
src/include/commands/view.h diff | blob | blame | history
src/include/executor/executor.h diff | blob | blame | history
src/include/nodes/nodes.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/nodes/primnodes.h diff | blob | blame | history
src/include/parser/kwlist.h diff | blob | blame | history
src/include/tcop/dest.h diff | blob | blame | history
src/include/utils/builtins.h diff | blob | blame | history
src/include/utils/rel.h diff | blob | blame | history
src/pl/plpgsql/src/pl_comp.c diff | blob | blame | history
src/pl/tcl/pltcl.c diff | blob | blame | history
src/test/regress/expected/matview.out [new file with mode: 0644] blob
src/test/regress/expected/rules.out diff | blob | blame | history
src/test/regress/output/misc.source diff | blob | blame | history
src/test/regress/parallel_schedule diff | blob | blame | history
src/test/regress/serial_schedule diff | blob | blame | history
src/test/regress/sql/matview.sql [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

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