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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6f9e39b) | patch
WITH CHECK OPTION support for auto-updatable VIEWs
2013年7月18日 21:10:16 +0000 (17:10 -0400)
2013年7月18日 21:10:16 +0000 (17:10 -0400)
commit 4cbe3ac3e86790d05c569de4585e5075a62a9b41
WITH CHECK OPTION support for auto-updatable VIEWs

For simple views which are automatically updatable, this patch allows
the user to specify what level of checking should be done on records
being inserted or updated. For 'LOCAL CHECK', new tuples are validated
against the conditionals of the view they are being inserted into, while
for 'CASCADED CHECK' the new tuples are validated against the
conditionals for all views involved (from the top down).

This option is part of the SQL specification.

Dean Rasheed, reviewed by Pavel Stehule
33 files changed:
doc/src/sgml/ref/alter_view.sgml diff | blob | blame | history
doc/src/sgml/ref/create_view.sgml diff | blob | blame | history
src/backend/access/common/reloptions.c diff | blob | blame | history
src/backend/catalog/information_schema.sql diff | blob | blame | history
src/backend/catalog/sql_features.txt diff | blob | blame | history
src/backend/commands/tablecmds.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/nodeModifyTable.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/nodeFuncs.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/createplan.c diff | blob | blame | history
src/backend/optimizer/plan/planner.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/rewrite/rewriteHandler.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/include/catalog/catversion.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/execnodes.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/plannodes.h diff | blob | blame | history
src/include/optimizer/planmain.h diff | blob | blame | history
src/include/rewrite/rewriteHandler.h diff | blob | blame | history
src/include/utils/rel.h diff | blob | blame | history
src/test/regress/expected/create_view.out diff | blob | blame | history
src/test/regress/expected/updatable_views.out diff | blob | blame | history
src/test/regress/sql/updatable_views.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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