-
- Downloads
Make new event trigger facility actually do something.
Commit 3855968f 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
Showing
- contrib/pg_stat_statements/pg_stat_statements.c 9 additions, 8 deletionscontrib/pg_stat_statements/pg_stat_statements.c
- doc/src/sgml/plpgsql.sgml 68 additions, 1 deletiondoc/src/sgml/plpgsql.sgml
- doc/src/sgml/ref/create_event_trigger.sgml 0 additions, 6 deletionsdoc/src/sgml/ref/create_event_trigger.sgml
- src/backend/commands/event_trigger.c 260 additions, 77 deletionssrc/backend/commands/event_trigger.c
- src/backend/commands/extension.c 2 additions, 2 deletionssrc/backend/commands/extension.c
- src/backend/commands/schemacmds.c 2 additions, 2 deletionssrc/backend/commands/schemacmds.c
- src/backend/commands/trigger.c 1 addition, 1 deletionsrc/backend/commands/trigger.c
- src/backend/executor/functions.c 2 additions, 2 deletionssrc/backend/executor/functions.c
- src/backend/executor/spi.c 2 additions, 2 deletionssrc/backend/executor/spi.c
- src/backend/tcop/pquery.c 3 additions, 2 deletionssrc/backend/tcop/pquery.c
- src/backend/tcop/utility.c 163 additions, 32 deletionssrc/backend/tcop/utility.c
- src/backend/tsearch/ts_utils.c 2 additions, 8 deletionssrc/backend/tsearch/ts_utils.c
- src/backend/utils/cache/Makefile 2 additions, 2 deletionssrc/backend/utils/cache/Makefile
- src/backend/utils/cache/evtcache.c 242 additions, 0 deletionssrc/backend/utils/cache/evtcache.c
- src/include/commands/event_trigger.h 18 additions, 0 deletionssrc/include/commands/event_trigger.h
- src/include/nodes/nodes.h 1 addition, 0 deletionssrc/include/nodes/nodes.h
- src/include/port.h 1 addition, 0 deletionssrc/include/port.h
- src/include/tcop/utility.h 14 additions, 6 deletionssrc/include/tcop/utility.h
- src/include/utils/evtcache.h 34 additions, 0 deletionssrc/include/utils/evtcache.h
- src/pl/plpgsql/src/pl_comp.c 46 additions, 8 deletionssrc/pl/plpgsql/src/pl_comp.c
Loading
Please register or sign in to comment