| From: | jian he <jian(dot)universality(at)gmail(dot)com> |
|---|---|
| To: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
| Cc: | Melanie Plageman <melanieplageman(at)gmail(dot)com>, Daniel Gustafsson <daniel(at)yesql(dot)se>, Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: MERGE/SPLIT PARTITIONS issues/questions |
| Date: | 2026-08-18 03:47:53 |
| Message-ID: | CACJufxF_9y0inWcbiDJKe8pV+V-4i+H6r+uVpMdQwGgAj8J2Vg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
On Mon, Aug 17, 2026 at 6:27 PM Alexander Korotkov <aekorotkov(at)gmail(dot)com> wrote:
>
> Any objections to pushing these 4 fixes?
As mentioned in [1], RestrictSearchPath is called before
MergePartitionsMoveRows and SplitPartitionMoveRows.
This means that if an expression contains anything non-immutable, we can't
evaluate it consistently for every row under a restricted search path,
imagine function text_regclass.
It would be better to add a comment directly above SplitPartitionMoveRows and
MergePartitionsMoveRows to mention this situation.
This will help future readers understand the implications.
In MergePartitionsMoveRows, the `foreach(ltab, *wqueue)` can be removed,
because ATExecMergePartitions->createPartitionTable doesn't call
ATGetQueueEntry.
Similarly, the foreach loop in deleteSplitPartitionContext can also be
removed for the same reason,
we can probably get rid of deleteSplitPartitionContext.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrey Rachitskiy | 2026-08-18 08:29:19 | Re: BUG #19616: pgoutput sends stream abort ('A') to clients that did not enable streaming |
| Previous Message | PG Bug reporting form | 2026-08-18 03:06:09 | BUG #19626: Segmentation fault planning self-join IN subquery with LATERAL UNION ALL |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-08-18 03:51:48 | Fix a relcache reference leak in reorderbuffer.c |
| Previous Message | 邱宇航 | 2026-08-18 03:38:17 | Re: Thread-safe stringToNode() / pg_strtok() |