Re: SQL:2011 Application Time Update & Delete

From: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: SQL:2011 Application Time Update & Delete
Date: 2026-02-20 17:16:11
Message-ID: CA+renyV4tWU2d=n9_v=XNPHbZfNqqLokzd-Xt78M-zLd+46ubA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Feb 13, 2026 at 12:00 PM Paul A Jungwirth
<pj(at)illuminatedcomputing(dot)com> wrote:
>
> Here is another round to fix a few rebase conflicts.

I realized we didn't have any tests for v18's new feature to say
`UPDATE ... RETURNING OLD.foo, NEW.foo`. These patches add a small
test for `RETURNING OLD.valid_at, NEW.valid_at` when you say `UPDATE
FOR PORTION OF valid_at`. This seems worth testing since that column
gets set in an automatic way, not via the normal SET syntax. No fixes
were needed.

I also corrected the commit message, which still referred to the
without_overlaps function that we renamed to
{range,multirange}_minus_multi.

As far as I know nothing else here is waiting on me, but please
correct me if I've overlooked something.

Rebased to 18bcdb75d1.

Yours,

--
Paul ~{:-)
pj(at)illuminatedcomputing(dot)com

Attachment Content-Type Size
v67-0005-Look-up-additional-temporal-foreign-key-helper-p.patch text/x-patch 6.3 KB
v67-0003-Add-isolation-tests-for-UPDATE-DELETE-FOR-PORTIO.patch text/x-patch 198.7 KB
v67-0001-Add-range_get_constructor2-to-lsyscache.patch text/x-patch 2.1 KB
v67-0004-Add-tg_temporal-to-TriggerData.patch text/x-patch 9.7 KB
v67-0002-Add-UPDATE-DELETE-FOR-PORTION-OF.patch text/x-patch 283.5 KB
v67-0006-Add-CASCADE-SET-NULL-SET-DEFAULT-for-temporal-fo.patch text/x-patch 205.7 KB
v67-0007-Expose-FOR-PORTION-OF-to-plpgsql-triggers.patch text/x-patch 15.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2026-02-20 17:26:37 Re: Adding locks statistics
Previous Message Alexandre Felipe 2026-02-20 16:58:38 Re: Regression failures after changing PostgreSQL blocksize