]> granicus.if.org Git - postgresql/commit
Event Trigger for table_rewrite
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 7 Dec 2014 15:55:28 +0000 (00:55 +0900)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 7 Dec 2014 15:55:28 +0000 (00:55 +0900)
commit618c9430a82860c84a3be2711eec2c3b43573b2a
treee8415e009b1cfd89a73d6211271f5d6d414bfba5
parentb8e33a85d4e86a8391118c3d5cdb249b560dec4f
Event Trigger for table_rewrite

Generate a table_rewrite event when ALTER TABLE
attempts to rewrite a table. Provide helper
functions to identify table and reason.

Intended use case is to help assess or to react
to schema changes that might hold exclusive locks
for long periods.

Dimitri Fontaine, triggering an edit by Simon Riggs

Reviewed in detail by Michael Paquier
13 files changed:
doc/src/sgml/event-trigger.sgml
doc/src/sgml/func.sgml
src/backend/commands/event_trigger.c
src/backend/commands/tablecmds.c
src/backend/utils/cache/evtcache.c
src/include/catalog/pg_proc.h
src/include/commands/event_trigger.h
src/include/utils/builtins.h
src/include/utils/evtcache.h
src/test/regress/expected/event_trigger.out
src/test/regress/parallel_schedule
src/test/regress/serial_schedule
src/test/regress/sql/event_trigger.sql