From: Nuwan Liyanage <alnuwan2@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Delete from base table and not partitions
Date: Mon, 3 Mar 2008 09:38:11 -0800 (PST)
Message-ID: <934430.16659.qm@web46015.mail.sp1.yahoo.com> (raw)
In-Reply-To: <26518.1204564214@sss.pgh.pa.us>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alnuwan2@yahoo.com, tgl@sss.pgh.pa.us
Subject: Re: Delete from base table and not partitions
In-Reply-To: <934430.16659.qm@web46015.mail.sp1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox