mirror of
https://github.com/postgres/postgres.git
synced 2026-02-23 01:40:33 -05:00
There are two functions that can be used in event triggers to get more
details about a rewrite happening on a relation. Both had a limited
documentation:
- pg_event_trigger_table_rewrite_reason() and
pg_event_trigger_table_rewrite_oid() were not mentioned in the main
event trigger section in the paragraph dedicated to the event
table_rewrite.
- pg_event_trigger_table_rewrite_reason() returns an integer which is a
bitmap of the reasons why a rewrite happens. There was no explanation
about the meaning of these values, forcing the reader to look at the
code to find out that these are defined in event_trigger.h.
While on it, let's add a comment in event_trigger.h where the
AT_REWRITE_* are defined, telling to update the documentation when
these values are changed.
Backpatch down to 13 as a consequence of
|
||
|---|---|---|
| .. | ||
| alter.h | ||
| async.h | ||
| cluster.h | ||
| collationcmds.h | ||
| comment.h | ||
| conversioncmds.h | ||
| copy.h | ||
| copyfrom_internal.h | ||
| createas.h | ||
| dbcommands.h | ||
| dbcommands_xlog.h | ||
| defrem.h | ||
| discard.h | ||
| event_trigger.h | ||
| explain.h | ||
| extension.h | ||
| lockcmds.h | ||
| matview.h | ||
| policy.h | ||
| portalcmds.h | ||
| prepare.h | ||
| proclang.h | ||
| progress.h | ||
| publicationcmds.h | ||
| schemacmds.h | ||
| seclabel.h | ||
| sequence.h | ||
| subscriptioncmds.h | ||
| tablecmds.h | ||
| tablespace.h | ||
| trigger.h | ||
| typecmds.h | ||
| user.h | ||
| vacuum.h | ||
| variable.h | ||
| view.h | ||