Re: Delete from base table and not partitions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Delete from base table and not partitions
Дата
Msg-id 26518.1204564214@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Delete from base table and not partitions  (Nuwan Liyanage <alnuwan2@yahoo.com>)
Ответы Re: Delete from base table and not partitions  (Nuwan Liyanage <alnuwan2@yahoo.com>)
Список pgsql-admin
Nuwan Liyanage <alnuwan2@yahoo.com> writes:
>     Now I added the trigger rule to base_table and the data for
>     partition_3 is going to the right place, but I am stuck with some data
>     in the actual base_table. How could I move that data from the base
>     table to the partition_3?

Something involving SELECT ... FROM ONLY base_table and then DELETE FROM
ONLY base_table would do it for you.

            regards, tom lane

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

Предыдущее
От: Nuwan Liyanage
Дата:
Сообщение: Delete from base table and not partitions
Следующее
От: Nuwan Liyanage
Дата:
Сообщение: Re: Delete from base table and not partitions