-
- Downloads
pg_event_trigger_dropped_objects: add behavior flags
Add "normal" and "original" flags as output columns to the pg_event_trigger_dropped_objects() function. With this it's possible to distinguish which objects, among those listed, need to be explicitely referenced when trying to replicate a deletion. This is necessary so that the list of objects can be pruned to the minimum necessary to replicate the DROP command in a remote server that might have slightly different schema (for instance, TOAST tables and constraints with different names and such.) Catalog version bumped due to change of function definition. Reviewed by: Abhijit Menon-Sen, Stephen Frost, Heikki Linnakangas, Robert Haas.
Showing
- doc/src/sgml/func.sgml 13 additions, 0 deletionsdoc/src/sgml/func.sgml
- src/backend/catalog/dependency.c 15 additions, 6 deletionssrc/backend/catalog/dependency.c
- src/backend/commands/event_trigger.c 13 additions, 3 deletionssrc/backend/commands/event_trigger.c
- src/include/catalog/catversion.h 1 addition, 1 deletionsrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 1 addition, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/commands/event_trigger.h 2 additions, 1 deletionsrc/include/commands/event_trigger.h
- src/test/regress/expected/event_trigger.out 40 additions, 0 deletionssrc/test/regress/expected/event_trigger.out
- src/test/regress/sql/event_trigger.sql 30 additions, 0 deletionssrc/test/regress/sql/event_trigger.sql
Loading
Please register or sign in to comment