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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f7b15b5) | patch
Support triggers on views.
2010年10月10日 17:43:33 +0000 (13:43 -0400)
2010年10月10日 17:45:07 +0000 (13:45 -0400)
commit 2ec993a7cbdd8e251817ac6bbc9a704ce8346f73
Support triggers on views.

This patch adds the SQL-standard concept of an INSTEAD OF trigger, which
is fired instead of performing a physical insert/update/delete. The
trigger function is passed the entire old and/or new rows of the view,
and must figure out what to do to the underlying tables to implement
the update. So this feature can be used to implement updatable views
using trigger programming style rather than rule hacking.

In passing, this patch corrects the names of some columns in the
information_schema.triggers view. It seems the SQL committee renamed
them somewhere between SQL:99 and SQL:2003.

Dean Rasheed, reviewed by Bernd Helmle; some additional hacking by me.
47 files changed:
doc/src/sgml/catalogs.sgml diff | blob | blame | history
doc/src/sgml/information_schema.sgml diff | blob | blame | history
doc/src/sgml/plperl.sgml diff | blob | blame | history
doc/src/sgml/plpgsql.sgml diff | blob | blame | history
doc/src/sgml/plpython.sgml diff | blob | blame | history
doc/src/sgml/pltcl.sgml diff | blob | blame | history
doc/src/sgml/ref/create_rule.sgml diff | blob | blame | history
doc/src/sgml/ref/create_trigger.sgml diff | blob | blame | history
doc/src/sgml/rules.sgml diff | blob | blame | history
doc/src/sgml/trigger.sgml diff | blob | blame | history
src/backend/catalog/index.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/copy.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/commands/trigger.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/optimizer/prep/preptlist.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/rewrite/rewriteHandler.c diff | blob | blame | history
src/backend/rewrite/rewriteManip.c diff | blob | blame | history
src/backend/utils/adt/ruleutils.c diff | blob | blame | history
src/bin/pg_dump/pg_dump.c diff | blob | blame | history
src/bin/psql/describe.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/catalog/pg_trigger.h diff | blob | blame | history
src/include/commands/trigger.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/utils/rel.h diff | blob | blame | history
src/pl/plperl/expected/plperl_trigger.out diff | blob | blame | history
src/pl/plperl/plperl.c diff | blob | blame | history
src/pl/plperl/sql/plperl_trigger.sql diff | blob | blame | history
src/pl/plpgsql/src/pl_exec.c diff | blob | blame | history
src/pl/plpython/expected/plpython_trigger.out diff | blob | blame | history
src/pl/plpython/plpython.c diff | blob | blame | history
src/pl/plpython/sql/plpython_trigger.sql diff | blob | blame | history
src/pl/tcl/expected/pltcl_queries.out diff | blob | blame | history
src/pl/tcl/expected/pltcl_queries_1.out diff | blob | blame | history
src/pl/tcl/expected/pltcl_setup.out diff | blob | blame | history
src/pl/tcl/pltcl.c diff | blob | blame | history
src/pl/tcl/sql/pltcl_queries.sql diff | blob | blame | history
src/pl/tcl/sql/pltcl_setup.sql diff | blob | blame | history
src/test/regress/expected/triggers.out diff | blob | blame | history
src/test/regress/sql/triggers.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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