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 PG 18 manual ↗

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

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. PG 13 → 14changed
  2. PG 12 → 13changed
  3. PG 9.4 → 9.5added

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source