↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Event Trigger Functions

pg_event_trigger_table_rewrite_reason

Read the PG 18 manual

Returns a code explaining the reason(s) for rewriting.

Reading PG 18current·documented in 13 of 27 versions, 9.5 to 20

Signatures & examples

pg_event_trigger_table_rewrite_reason () → integer
Returns a code explaining the reason(s) for rewriting. The value is a bitmap built from the following values: 1 (the table has changed its persistence), 2 (default value of a column has changed), 4 (a column has a new data type) and 8 (the table access method has changed).
Version history 3
  1. 13 → 14 changed
  2. 12 → 13 changed
  3. 9.4 → 9.5 added

Definition snapshot: b7bd9cda · English manual source