[HACKERS] AT detach partition is broken - Mailing list pgsql-hackers

From Amit Langote
Subject [HACKERS] AT detach partition is broken
Date
Msg-id 0795d78c-05fe-f625-ac5a-41a0031e967d@lab.ntt.co.jp
Whole thread Raw
Responses Re: [HACKERS] AT detach partition is broken
List pgsql-hackers
I noticed that running ALTER TABLE table_name DETACH PARTITION crashes, if
table_name is not a partitioned table.  That's because of an  Assert in
ATExecDetachPartition().  We really should error out much sooner in this
case, IOW during transformAlterTableStmt(), as is done in the case of
ATTACH PARTITION.

Attached patch fixes that.

Thanks,
Amit

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] DROP SUBSCRIPTION and ROLLBACK
Next
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] GUC for cleanup indexes threshold.