mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user