| From: | Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com> |
|---|---|
| To: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, jian he <jian(dot)universality(at)gmail(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com> |
| Subject: | Re: MERGE/SPLIT PARTITIONS issues/questions |
| Date: | 2026-08-21 09:36:34 |
| Message-ID: | CAN4CZFMAZg_nUefJxsC_PcYvHqWPAMTrtCwMMkwiB3poWKkpkg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
I don't think 0005 is correct. Similar to the other changes, the
intention should be "do not change the table access method in an
invisible way to the user".
The current patch still drops explicit table AMs for a partition
(CREATE TABLE tp PARTITION OF ... USING otheram) in favor of the
parent AM or even the current session default AM.
Merge of partitions with different AMs still succeed.
I have to agree with Daniel's reasoning earlier:
> Apart from the obviously dangerous ones like RLS and ACL, silently dropping the
> table AM may induce side-effects which are hard for us to even reason about
> since they are external to the core code.
As an example, we have pg_tde which provides an encrypted version of
the heap AM. Silently changing the table AM in our case means that we
remove encryption from the data without notifying the user about it.
We can detect such commands in an event trigger and disable them to
prevent accidents, but I don't think this should be left to extension
authors.
> As I mentioned in [1], I think this is the way to save this feature
> for pg19. I think it's too late to introduce new (and debatable)
> functionality.
My opinion is that things like silently dropping triggers or default
values or constraints can result in similar dangerous accidents.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ayush Tiwari | 2026-08-21 10:15:14 | Re: BUG #19631: currtid2() on a view with GROUP BY ctid crashes with XX000 |
| Previous Message | PG Bug reporting form | 2026-08-21 09:23:51 | BUG #19636: heap_fill_tuple misses short varlena conversion after EOH_flatten_into, causing 3-byte waste per row |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2026-08-21 09:45:59 | Re: Proposal: Conflict log history table for Logical Replication |
| Previous Message | Andy Fan | 2026-08-21 09:06:39 | Re: ProcArrayAdd/ProcArrayRemove in Prepared Transaction |