Re: constraint_exclusion on OLTP tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: constraint_exclusion on OLTP tables
Дата
Msg-id 28632.1139842925@sss.pgh.pa.us
обсуждение исходный текст
Ответ на constraint_exclusion on OLTP tables  (Chris Hoover <revoohc@gmail.com>)
Список pgsql-admin
Chris Hoover <revoohc@gmail.com> writes:
> The problem I am having is how can you safely move records between
> main_table_live and one of the other partition tables?

My advice is "don't do that".  Partition just based on the year.
You can exploit your knowledge about status distribution by creating
suitable indexes.

> Also, is there a way to make foreign keys work with the partitioned table

No, not at present, which is another reason you don't want records
moving around.

            regards, tom lane

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

Предыдущее
От: Chris Hoover
Дата:
Сообщение: constraint_exclusion on OLTP tables
Следующее
От: Chris Browne
Дата:
Сообщение: Re: How to VACUUM this table? "998994633 estimated total rows"