[HACKERS] AT detach partition is broken

Поиск
Список
Период
Сортировка
От Amit Langote
Тема [HACKERS] AT detach partition is broken
Дата
Msg-id 0795d78c-05fe-f625-ac5a-41a0031e967d@lab.ntt.co.jp
обсуждение исходный текст
Ответы Re: [HACKERS] AT detach partition is broken  (Robert Haas <robertmhaas@gmail.com>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: [HACKERS] DROP SUBSCRIPTION and ROLLBACK
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: [HACKERS] GUC for cleanup indexes threshold.