From: Nuwan Liyanage <alnuwan2@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Delete from base table and not partitions
Date: Mon, 3 Mar 2008 08:21:29 -0800 (PST)
Message-ID: <230743.62438.qm@web46012.mail.sp1.yahoo.com> (raw)
Question: I have a base table with several temporal partitions like this:
base_table
partition_1
partition_2
There are check rules on partitions, and trigger rules on the base
table to ensure data loaded into base_table goes to a correct
partition.
I added partition_3 and created the check rules on it, but forgot to
add trigger rules on the base_table. So for a while data inserted into
base_table and meant for partition_3 was actually inserted into
base_table.
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?
thanks.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
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
Subject: Re: Delete from base table and not partitions
In-Reply-To: <230743.62438.qm@web46012.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