Re: Question on partitioning

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Question on partitioning
Дата
Msg-id CANzqJaCD7CwXdvXFer64k2JH3q00kipAd4cQ43rJcSGXFWbL5g@mail.gmail.com
обсуждение исходный текст
Ответ на Question on partitioning  (veem v <veema0000@gmail.com>)
Список pgsql-general
On Sun, Feb 4, 2024 at 4:40 PM veem v <veema0000@gmail.com> wrote:
Hello All,
In postgresql, Is it possible to partition an existing nonpartitioned table having data already residing in it and indexes and constraints defined in it, without the need of manually moving the data around, to make it faster? Similarly merging multiple partitions to one partition or splitting a single partition into multiple partitions?
 
That depends on how you partition the table, and what the PK is.  Works great when the PK is constantly increasing (think "sequence" or "timestamp", and you partition by PK ranges; not so great when you want to partition by a different column.

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: How to do faster DML
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: select from composite type