diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2014-12-08 00:55:28 +0900 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2014-12-08 00:55:28 +0900 |
commit | 618c9430a82860c84a3be2711eec2c3b43573b2a (patch) | |
tree | e8415e009b1cfd89a73d6211271f5d6d414bfba5 /src/include/utils/builtins.h | |
parent | b8e33a85d4e86a8391118c3d5cdb249b560dec4f (diff) | |
download | postgresql-618c9430a82860c84a3be2711eec2c3b43573b2a.tar.gz postgresql-618c9430a82860c84a3be2711eec2c3b43573b2a.zip |
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
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 565cff3e0d2..2da3002e5d0 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -1200,6 +1200,8 @@ extern Datum unique_key_recheck(PG_FUNCTION_ARGS); /* commands/event_trigger.c */ extern Datum pg_event_trigger_dropped_objects(PG_FUNCTION_ARGS); +extern Datum pg_event_trigger_table_rewrite_oid(PG_FUNCTION_ARGS); +extern Datum pg_event_trigger_table_rewrite_reason(PG_FUNCTION_ARGS); /* commands/extension.c */ extern Datum pg_available_extensions(PG_FUNCTION_ARGS); |