Re: Working with partition tables

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Working with partition tables
Дата
Msg-id CAKFQuwbCYS58u4=PyTAYunVgH=KdOe4+50_-zWDF-TFWfnrNGw@mail.gmail.com
обсуждение исходный текст
Ответ на Working with partition tables  (John Scalia <jayknowsunix@gmail.com>)
Ответы Re: Working with partition tables
Список pgsql-admin
On Thu, Nov 12, 2020 at 9:18 AM John Scalia <jayknowsunix@gmail.com> wrote:
Is there any way to remove the partition key, or do we simply need to create a new table with the structure we need, drop the old one, then rename the new one to that original name and reattach the partitions?
 
I'm not super familiar with partitioning but...you can probably do it in the reverse order and avoid the rename.  A partitioned table without partitions seems useless so just drop it, then create a new one with the same name with the correct defintion.

The documentation is indeed clear though you may be looking in the wrong spot:
"It is not possible to turn a regular table into a partitioned table or vice versa."

David J.

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

Предыдущее
От: John Scalia
Дата:
Сообщение: Working with partition tables
Следующее
От: Il Mimo di Creta
Дата:
Сообщение: Re: Save failed records into auxiliary table