Re: Delete from base table and not partitions

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

Nuwan Liyanage <alnuwan2(at)yahoo(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nuwan Liyanage 2008-03-03 17:38:11 Re: Delete from base table and not partitions
Previous Message Nuwan Liyanage 2008-03-03 16:45:45 Delete from base table and not partitions