From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nuwan Liyanage <alnuwan2@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Delete from base table and not partitions
Date: Mon, 03 Mar 2008 12:10:14 -0500
Message-ID: <26518.1204564214@sss.pgh.pa.us> (raw)
In-Reply-To: <657529.64615.qm@web46016.mail.sp1.yahoo.com>
References: <657529.64615.qm@web46016.mail.sp1.yahoo.com>
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
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: tgl@sss.pgh.pa.us, alnuwan2@yahoo.com
Subject: Re: Delete from base table and not partitions
In-Reply-To: <26518.1204564214@sss.pgh.pa.us>
* 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