Re: First draft of the PG 15 release notes

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: First draft of the PG 15 release notes
Date: 2022-05-11 07:02:31
Message-ID: CA+HiwqFcEdbNinfK94aTgBJKmtkYGdtkPnjt3b0fVzKi+WZ+KA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 11, 2022 at 12:44 AM Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> I have completed the first draft of the PG 15 release notes

Thanks. Regarding:

<!--
Author: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
2022-03-20 [ba9a7e392] Enforce foreign key correctly during cross-partition upd
-->

<listitem>
<para>
Improve the trigger behavior of updates on partitioned tables that
move rows between partitions (Amit Langote)
</para>

<para>
Previously, such updates fired delete triggers on the source partition
and fired insert triggers on the target partition. PostgreSQL will
now fire an update trigger on the partition root. This makes
foreign key behavior more consistent. ALL TRIGGERS?
</para>
</listitem>

The commit is intended to only change the behavior of RI triggers,
while leaving user-defined triggers firing as before. I think it
might be a good idea to be specific by wording this, maybe as follows?

Improve the firing of foreign key triggers during cross-partition
updates of partitioned tables (Amit Langote)

Previously, such updates fired delete triggers on the source partition
and insert triggers on the target partition, whereas PostgreSQL will
now fire update triggers on the partitioned table mentioned in the
query, which makes the behavior of foreign keys pointing into that
table more consistent. Note that other user-defined triggers are
fired as they were before.

--
Thanks, Amit Langote
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2022-05-11 07:21:09 gitmaster access
Previous Message Michael Paquier 2022-05-11 06:48:40 Re: TRAP: FailedAssertion("tabstat->trans == trans", File: "pgstat_relation.c", Line: 508