{"Entry":{"collection":"func","key":"pg-event-trigger-table-rewrite-reason","name":"pg_event_trigger_table_rewrite_reason","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.5"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"13","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"14"}],"content_hash":"32cd2a910301c98f005e07f83ad546f7cd70439b468832f97ea8314c8b256520","derived_content_hash":"0ac8719314d06ced13781315e4c7bb340c644f5057b6f7d0d1c9d95c6bc184f0","first_version":"9.5","group":"event-triggers","group_label":"Event Trigger Functions","groups":["event-triggers"],"imported_at":"2026-09-27T17:57:29.744654+08:00","last_version":"20","name":"pg_event_trigger_table_rewrite_reason","name_key":"pg_event_trigger_table_rewrite_reason","position":31003,"present_in":["9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"28ec7ec85ca72043011753cf02554ecd787e6dd1d078d93e56c5b4d1e76518f9","repair":"wiki-repair-20261023"},"signature":"pg_event_trigger_table_rewrite_reason () → integer","signature_count":1,"slug":"pg-event-trigger-table-rewrite-reason","source_rev":"wiki-repair-20261023:2b795a763c996f7fd29e46820bb098aacecc2b2e2d17cc0d693bdf28de4d9174","summary":"Returns a code explaining the reason(s) for rewriting.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-event-trigger-table-rewrite-reason","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-event-trigger-table-rewrite-reason","SourceRevision":"wiki-repair-20261023:2b795a763c996f7fd29e46820bb098aacecc2b2e2d17cc0d693bdf28de4d9174","Facts":{"description":"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).","description_html":"Returns a code explaining the reason(s) for rewriting. The value is a bitmap built from the following values: \u003ccode class=\"literal\"\u003e1\u003c/code\u003e (the table has changed its persistence), \u003ccode class=\"literal\"\u003e2\u003c/code\u003e (default value of a column has changed), \u003ccode class=\"literal\"\u003e4\u003c/code\u003e (a column has a new data type) and \u003ccode class=\"literal\"\u003e8\u003c/code\u003e (the table access method has changed).","description_zh":"返回一个说明重写原因的代码。该值是由以下值组成的位图：1（表的持久性发生变化）、2（某列的默认值发生变化）、4（某列具有新的数据类型）以及 8（表访问方法发生变化）。","description_zh_html":"返回一个说明重写原因的代码。该值是由以下值组成的位图：\u003ccode class=\"literal\"\u003e1\u003c/code\u003e（表的持久性发生变化）、\u003ccode class=\"literal\"\u003e2\u003c/code\u003e（某列的默认值发生变化）、\u003ccode class=\"literal\"\u003e4\u003c/code\u003e（某列具有新的数据类型）以及 \u003ccode class=\"literal\"\u003e8\u003c/code\u003e（表访问方法发生变化）。","doc":{"anchor":"FUNCTIONS-EVENT-TRIGGER-TABLE-REWRITE","file":"functions-event-triggers.html","slug":"18"},"group":"event-triggers","group_label":"Event Trigger Functions","lang":"en","layout":"table-new","pages":["functions-event-triggers.html"],"prose_only":false,"signatures":[{"description":"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).","description_html":"Returns a code explaining the reason(s) for rewriting. The value is a bitmap built from the following values: \u003ccode class=\"literal\"\u003e1\u003c/code\u003e (the table has changed its persistence), \u003ccode class=\"literal\"\u003e2\u003c/code\u003e (default value of a column has changed), \u003ccode class=\"literal\"\u003e4\u003c/code\u003e (a column has a new data type) and \u003ccode class=\"literal\"\u003e8\u003c/code\u003e (the table access method has changed).","description_zh":"返回一个说明重写原因的代码。该值是由以下值组成的位图：1（表的持久性发生变化）、2（某列的默认值发生变化）、4（某列具有新的数据类型）以及 8（表访问方法发生变化）。","description_zh_html":"返回一个说明重写原因的代码。该值是由以下值组成的位图：\u003ccode class=\"literal\"\u003e1\u003c/code\u003e（表的持久性发生变化）、\u003ccode class=\"literal\"\u003e2\u003c/code\u003e（某列的默认值发生变化）、\u003ccode class=\"literal\"\u003e4\u003c/code\u003e（某列具有新的数据类型）以及 \u003ccode class=\"literal\"\u003e8\u003c/code\u003e（表访问方法发生变化）。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_event_trigger_table_rewrite_reason\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"pg_event_trigger_table_rewrite_reason () → integer","zh_from":"same-version-pgdoc"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-event-triggers.html","sha256":"39e01f1eeebc1cf29072aab6d31ef4d351bf4010a3c18bd225302c76083bdfca"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-EVENT-TRIGGER-TABLE-REWRITE","file":"functions-event-triggers.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-event-trigger-table-rewrite-reason","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_event_trigger_table_rewrite_reason","Summary":"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).","BodyHTML":"Returns a code explaining the reason(s) for rewriting. The value is a bitmap built from the following values: \u003ccode\u003e1\u003c/code\u003e (the table has changed its persistence), \u003ccode\u003e2\u003c/code\u003e (default value of a column has changed), \u003ccode\u003e4\u003c/code\u003e (a column has a new data type) and \u003ccode\u003e8\u003c/code\u003e (the table access method has changed).","SourceRevision":"wiki-repair-20261023:2b795a763c996f7fd29e46820bb098aacecc2b2e2d17cc0d693bdf28de4d9174","ContentHash":"0c69537efb5ebe3b441ed956cc6bcef3d0d622e75eafe3feb0d2a22140d044e1","Payload":{"description":"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).","description_html":"Returns a code explaining the reason(s) for rewriting. The value is a bitmap built from the following values: \u003ccode class=\"literal\"\u003e1\u003c/code\u003e (the table has changed its persistence), \u003ccode class=\"literal\"\u003e2\u003c/code\u003e (default value of a column has changed), \u003ccode class=\"literal\"\u003e4\u003c/code\u003e (a column has a new data type) and \u003ccode class=\"literal\"\u003e8\u003c/code\u003e (the table access method has changed).","signatures":[{"description":"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).","description_html":"Returns a code explaining the reason(s) for rewriting. The value is a bitmap built from the following values: \u003ccode class=\"literal\"\u003e1\u003c/code\u003e (the table has changed its persistence), \u003ccode class=\"literal\"\u003e2\u003c/code\u003e (default value of a column has changed), \u003ccode class=\"literal\"\u003e4\u003c/code\u003e (a column has a new data type) and \u003ccode class=\"literal\"\u003e8\u003c/code\u003e (the table access method has changed).","description_zh":"返回一个说明重写原因的代码。该值是由以下值组成的位图：1（表的持久性发生变化）、2（某列的默认值发生变化）、4（某列具有新的数据类型）以及 8（表访问方法发生变化）。","description_zh_html":"返回一个说明重写原因的代码。该值是由以下值组成的位图：\u003ccode class=\"literal\"\u003e1\u003c/code\u003e（表的持久性发生变化）、\u003ccode class=\"literal\"\u003e2\u003c/code\u003e（某列的默认值发生变化）、\u003ccode class=\"literal\"\u003e4\u003c/code\u003e（某列具有新的数据类型）以及 \u003ccode class=\"literal\"\u003e8\u003c/code\u003e（表访问方法发生变化）。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_event_trigger_table_rewrite_reason\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"pg_event_trigger_table_rewrite_reason () → integer","zh_from":"same-version-pgdoc"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"fbb244b75775d1fe9b4e7eba31983f862ee1425249a184c9cd6970a1d4ddb597","Text":"pg_event_trigger_table_rewrite_reason () → integer","Returns":"integer","Payload":{"description":"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).","description_html":"Returns a code explaining the reason(s) for rewriting. The value is a bitmap built from the following values: \u003ccode class=\"literal\"\u003e1\u003c/code\u003e (the table has changed its persistence), \u003ccode class=\"literal\"\u003e2\u003c/code\u003e (default value of a column has changed), \u003ccode class=\"literal\"\u003e4\u003c/code\u003e (a column has a new data type) and \u003ccode class=\"literal\"\u003e8\u003c/code\u003e (the table access method has changed).","description_zh":"返回一个说明重写原因的代码。该值是由以下值组成的位图：1（表的持久性发生变化）、2（某列的默认值发生变化）、4（某列具有新的数据类型）以及 8（表访问方法发生变化）。","description_zh_html":"返回一个说明重写原因的代码。该值是由以下值组成的位图：\u003ccode class=\"literal\"\u003e1\u003c/code\u003e（表的持久性发生变化）、\u003ccode class=\"literal\"\u003e2\u003c/code\u003e（某列的默认值发生变化）、\u003ccode class=\"literal\"\u003e4\u003c/code\u003e（某列具有新的数据类型）以及 \u003ccode class=\"literal\"\u003e8\u003c/code\u003e（表访问方法发生变化）。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_event_trigger_table_rewrite_reason\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"pg_event_trigger_table_rewrite_reason () → integer","zh_from":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
