Skip to content

Commit 1cf1112

Browse files
committed
doc: clearify trigger behavior for inheritance
The previous wording added in PG 10 wasn't specific enough about the behavior of statement and row triggers when using inheritance. Reported-by: ian@thepathcentral.com Discussion: https://postgr.es/m/20171129193934.27108.30796@wrigleys.postgresql.org Backpatch-through: 10
1 parent 3b15255 commit 1cf1112

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/src/sgml/ref/create_trigger.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,10 @@ UPDATE OF <replaceable>column_name1</replaceable> [, <replaceable>column_name2</
501501

502502
<para>
503503
Modifying a partitioned table or a table with inheritance children fires
504-
statement-level triggers directly attached to that table, but not
504+
statement-level triggers attached to the explicitly named table, but not
505505
statement-level triggers for its partitions or child tables. In contrast,
506-
row-level triggers are fired for all affected partitions or child tables.
506+
row-level triggers are fired on the rows in effected partitions or
507+
child tables, even if they are not explicitly named in the query.
507508
If a statement-level trigger has been defined with transition relations
508509
named by a <literal>REFERENCING</literal> clause, then before and after
509510
images of rows are visible from all affected partitions or child tables.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy