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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: be86e3d) | patch
Make new event trigger facility actually do something.
2012年7月20日 15:38:47 +0000 (11:38 -0400)
2012年7月20日 15:39:01 +0000 (11:39 -0400)
commit 3a0e4d36ebd7f477822d5bae41ba121a40d22ccc
Make new event trigger facility actually do something.

Commit 3855968f328918b6cd1401dd11d109d471a54d40 added syntax, pg_dump,
psql support, and documentation, but the triggers didn't actually fire.
With this commit, they now do. This is still a pretty basic facility
overall because event triggers do not get a whole lot of information
about what the user is trying to do unless you write them in C; and
there's still no option to fire them anywhere except at the very
beginning of the execution sequence, but it's better than nothing,
and a good building block for future work.

Along the way, add a regression test for ALTER LARGE OBJECT, since
testing of event triggers reveals that we haven't got one.

Dimitri Fontaine and Robert Haas
28 files changed:
contrib/pg_stat_statements/pg_stat_statements.c diff | blob | blame | history
doc/src/sgml/plpgsql.sgml diff | blob | blame | history
doc/src/sgml/ref/create_event_trigger.sgml diff | blob | blame | history
src/backend/commands/event_trigger.c diff | blob | blame | history
src/backend/commands/extension.c diff | blob | blame | history
src/backend/commands/schemacmds.c diff | blob | blame | history
src/backend/commands/trigger.c diff | blob | blame | history
src/backend/executor/functions.c diff | blob | blame | history
src/backend/executor/spi.c diff | blob | blame | history
src/backend/tcop/pquery.c diff | blob | blame | history
src/backend/tcop/utility.c diff | blob | blame | history
src/backend/tsearch/ts_utils.c diff | blob | blame | history
src/backend/utils/cache/Makefile diff | blob | blame | history
src/backend/utils/cache/evtcache.c [new file with mode: 0644] blob
src/include/commands/event_trigger.h diff | blob | blame | history
src/include/nodes/nodes.h diff | blob | blame | history
src/include/port.h diff | blob | blame | history
src/include/tcop/utility.h diff | blob | blame | history
src/include/utils/evtcache.h [new file with mode: 0644] blob
src/pl/plpgsql/src/pl_comp.c diff | blob | blame | history
src/pl/plpgsql/src/pl_exec.c diff | blob | blame | history
src/pl/plpgsql/src/pl_handler.c diff | blob | blame | history
src/pl/plpgsql/src/plpgsql.h diff | blob | blame | history
src/port/qsort.c diff | blob | blame | history
src/test/regress/expected/event_trigger.out diff | blob | blame | history
src/test/regress/input/largeobject.source diff | blob | blame | history
src/test/regress/output/largeobject.source diff | blob | blame | history
src/test/regress/sql/event_trigger.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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