Re: Delete from base table and not partitions

Поиск
Список
Период
Сортировка
От Nuwan Liyanage
Тема Re: Delete from base table and not partitions
Дата
Msg-id 934430.16659.qm@web46015.mail.sp1.yahoo.com
обсуждение исходный текст
Ответ на Re: Delete from base table and not partitions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Thank you very much, I was not aware of the 'ONLY' clause.
Nuwan.

Tom Lane <tgl@sss.pgh.pa.us> wrote:
Nuwan Liyanage 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


Looking for last minute shopping deals? Find them fast with Yahoo! Search.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Delete from base table and not partitions
Следующее
От: "Ryan Wells"
Дата:
Сообщение: Error restoring after 8.3 upgrade