]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix oversight in FindTriggerIncompatibleWithInheritance.
authorEtsuro Fujita <efujita@postgresql.org>
Fri, 8 Aug 2025 08:35:03 +0000 (17:35 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Fri, 8 Aug 2025 08:35:03 +0000 (17:35 +0900)
commit73eb6afa13605d9bb619752180b739fd3c4ba168
tree51e73302ce3ba792175595585264f8bd59622388
parentbef2c2a4ebefe5023368c7423ff8e06c98f6d32a
Fix oversight in FindTriggerIncompatibleWithInheritance.

This function is called from ATExecAttachPartition/ATExecAddInherit,
which prevent tables with row-level triggers with transition tables from
becoming partitions or inheritance children, to check if there is such a
trigger on the given table, but failed to check if a found trigger is
row-level, causing the caller functions to needlessly prevent a table
with only a statement-level trigger with transition tables from becoming
a partition or inheritance child.  Repair.

Oversight in commit 501ed02cf.

Author: Etsuro Fujita <etsuro.fujita@gmail.com>
Discussion: https://postgr.es/m/CAPmGK167mXzwzzmJ_0YZ3EZrbwiCxtM1vogH_8drqsE6PtxRYw%40mail.gmail.com
Backpatch-through: 13
src/backend/commands/trigger.c
src/test/regress/expected/triggers.out
src/test/regress/sql/triggers.sql