{"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","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"],"signature":"pg_event_trigger_table_rewrite_reason () → integer","signature_count":1,"slug":"pg-event-trigger-table-rewrite-reason","source_rev":"b7bd9cda","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":"b7bd9cda","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":"","description_zh_html":"","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":"","description_zh_html":"","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":""}],"zh_from":""},"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":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_event_trigger_table_rewrite_reason","Summary":"返回一个说明重写原因的代码。该值是由以下值组成的位图：1（表的持久性发生变化）、2（某列的默认值发生变化）、4（某列具有新的数据类型）以及 8（表访问方法发生变化）。","BodyHTML":"返回一个说明重写原因的代码。该值是由以下值组成的位图：\u003ccode\u003e1\u003c/code\u003e（表的持久性发生变化）、\u003ccode\u003e2\u003c/code\u003e（某列的默认值发生变化）、\u003ccode\u003e4\u003c/code\u003e（某列具有新的数据类型）以及 \u003ccode\u003e8\u003c/code\u003e（表访问方法发生变化）。\u003cpre\u003epg_event_trigger_table_rewrite_reason () → integer\u003c/pre\u003e返回一个说明重写原因的代码。该值是由以下值组成的位图：\u003ccode\u003e1\u003c/code\u003e（表的持久性发生变化）、\u003ccode\u003e2\u003c/code\u003e（某列的默认值发生变化）、\u003ccode\u003e4\u003c/code\u003e（某列具有新的数据类型）以及 \u003ccode\u003e8\u003c/code\u003e（表访问方法发生变化）。","SourceRevision":"ca936764","ContentHash":"7bb58f789f37db579ebd049223fc81487231f7218fc769319d724cd29e57f375","Payload":{"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（表访问方法发生变化）。","signatures":[{"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（表访问方法发生变化）。","returns":"integer","text":"pg_event_trigger_table_rewrite_reason () → integer","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
