pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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:45:45 -0800 (PST)
Message-ID: <657529.64615.qm@web46016.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?
       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

view thread (5+ messages)  latest in thread

Message-ID: <657529.64615.qm@web46016.mail.sp1.yahoo.com>
Permalink:  ../657529.64615.qm@web46016.mail.sp1.yahoo.com/
Also on:    postgresql.org/message-id/657529.64615.qm@web46016.mail.sp1.yahoo.com

 · 

reply

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: <657529.64615.qm@web46016.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