Re: Add SPLIT PARTITION/MERGE PARTITIONS commands - Mailing list pgsql-hackers

From Pavel Borisov
Subject Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date
Msg-id CALT9ZEFrDgha=RyOuWru45FTk9Dbj5FF-fTw0NnE8n1FwBb2yg@mail.gmail.com
Whole thread
List pgsql-hackers
Hi, Alexander!

On Tue, 16 Jun 2026 at 00:50, Alexander Korotkov <aekorotkov@gmail.com> wrote:
>
> On Mon, Jun 15, 2026 at 2:07 PM Justin Pryzby <pryzby@telsasoft.com> wrote:
> >
> > I hit an error when I tried this patch.
> >
> > CREATE TABLE a (a text) PARTITION BY RANGE(a);
> > CREATE TABLE a1 PARTITION OF a DEFAULT;
> > INSERT INTO a SELECT repeat('1', 9999999);
> > CREATE TABLE a2 PARTITION OF a FOR VALUES FROM (2)TO(3);
> > ALTER TABLE a MERGE PARTITIONS (a1, a2) INTO a1;
> > ERROR:  row is too big: size 39264, maximum size 8160
>
> Thank you for your report.  It appears that createPartitionTable()
> misses NewRelationCreateToastTable() call (for instance, DefineTable()
> has this call).  The attached patch implements fix and has tests.  I'm
> going to push it if no objections.

It looks like the patch is missing in the last message.

Regards,
Pavel Borisov,
Supabase



pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: Fix unqualified catalog references in psql describe queries
Next
From: Pavel Borisov
Date:
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands