↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Functions

pg_event_trigger_table_rewrite_reason

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).

English manual coverage begins with PostgreSQL 7.1. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

group
event-triggers
group label
Event Trigger Functions
lang
en
layout
table-new
pages
functions-event-triggers.html
prose only
false

Definition PG 18

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).

Signatures and overloads

pg_event_trigger_table_rewrite_reason () → integer → 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).

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · wiki-repair-20261023:2b795a763c996f7fd29e46820bb098aacecc2b2e2d17cc0d693bdf28de4d9174

Text language: en · wiki-repair-20261023:2b795a763c996f7fd29e46820bb098aacecc2b2e2d17cc0d693bdf28de4d9174