Re: Delete from base table and not partitions

From: Nuwan Liyanage <alnuwan2(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Delete from base table and not partitions
Date: 2008-03-03 17:38:11
Message-ID: 934430.16659.qm@web46015.mail.sp1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thank you very much, I was not aware of the 'ONLY' clause.
Nuwan.

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ryan Wells 2008-03-03 20:22:36 Error restoring after 8.3 upgrade
Previous Message Tom Lane 2008-03-03 17:10:14 Re: Delete from base table and not partitions