UPDATE/DELETE FOR PORTION OF
UPDATE/DELETE FOR PORTION OF
От:
Paul A Jungwirth <pj@illuminatedcomputing.com>
Дата:
Вложения:
Hi Hackers,
Here is a new patch series for UPDATE/DELETE FOR PORTION OF, based on
feedback from the v19 cycle. It includes fixes for all the Open Items
and other things that were reported.
The biggest issue was isolation anomalies under READ COMMITTED. We can
detect these, so for now I am just reporting a serialization failure.
I plan to work on avoiding them entirely, but it may require a WITHOUT
OVERLAPS index to be present.
A couple of the bugs reported against FOR PORTION OF were pre-existing
and applied to master as well (and require backpatching). I've
included those here as prerequisites, but see [0] and [1] for their
separate threads.
I also included support for DO INSTEAD/DO ALSO rules and INSTEAD OF
triggers. In v19 these were deemed to be new features, so we just
forbade the combination. But I think the desired semantics are clear.
If you do something *instead* of the original query, then we should
skip inserting leftovers. But we should still hit only the targeted
rows and we should tighten the range in the NEW tuple. For DO ALSO we
should do everything the original query does, and again tighten the
range in the NEW tuple. I broke this work out into separate patches to
make review easier, but I think it can be squashed when committing.
I tried to include Co-authored-by/Reviewed-by/Discussion references
based on all the bug reports from v19. If that is excessive, please
let me know and I'll drop them from future versions.
[0] https://www.postgresql.org/message-id/CA%2BrenyXoVubKLxGf%3Dopu4ty_OYbEC1TkpX5rGfwDQpUiAga-%3DA%40mail.gmail.com
[1] https://www.postgresql.org/message-id/CA%2BrenyVvS8K0YypfwYfRNT8-8OHoDKPPNv%3DpcSC0RdZx%2BuV__w%40mail.gmail.com
Yours,
--
Paul ~{:-)
pj@illuminatedcomputing.com
Re: UPDATE/DELETE FOR PORTION OF
От:
Paul A Jungwirth <pj@illuminatedcomputing.com>
Дата:
Вложения:
On Sat, Oct 31, 2026 at 10:31 AM Paul A Jungwirth
wrote:
>
> Here is a new patch series for UPDATE/DELETE FOR PORTION OF, based on
> feedback from the v19 cycle. It includes fixes for all the Open Items
> and other things that were reported.
Here is a rebase to fix a conflict with 398eb35f00, which removed
TransitionCaptureState->tcs_original_insert_tuple.
I also updated the prerequisite bugfix patches to match the latest
versions on those threads.
Yours,
--
Paul ~{:-)
pj@illuminatedcomputing.com