| From: | Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com> |
|---|---|
| To: | Sergei Patiakin <sergei(dot)patiakin(at)enterprisedb(dot)com> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, Peter Eisentraut <peter(at)eisentraut(dot)org> |
| Subject: | Re: Inconsistent trigger behavior between two temporal leftovers |
| Date: | 2026-04-15 05:28:34 |
| Message-ID: | CA+renyVFRiVSc80y1WK558RMbXOxUuQjFNR4RqH38SbMhZfAXQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Apr 8, 2026 at 5:50 AM Sergei Patiakin
<sergei(dot)patiakin(at)enterprisedb(dot)com> wrote:
>
> Attaching a patch that makes the behavior more consistent.
Thank you for the bug report!
I agree this seems surprising. The asymmetry doesn't bother me per se,
but each insert should have its own copy of the original row. It
doesn't make sense for a trigger firing on one leftover to affect the
other.
I wrote a fix before I saw yours, but they are nearly the same. I
tried to share more code between the first & subsequent passes, but
it's hard to do with the mapping case. So the fix you have here looks
great to me.
Yours,
--
Paul ~{:-)
pj(at)illuminatedcomputing(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul A Jungwirth | 2026-04-15 05:34:11 | Re: SQL:2011 Application Time Update & Delete |
| Previous Message | Peter Smith | 2026-04-15 05:27:49 | Re: First draft of PG 19 release notes |