Re: DDL partitioning with insert trigger issue

From: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
To: mark <dvlhntr(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: DDL partitioning with insert trigger issue
Date: 2010-06-15 10:15:51
Message-ID: F6EEE77F-AEFD-4EAB-AFFB-ACD598F9FE09@solfertje.student.utwente.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 15 Jun 2010, at 24:46, mark wrote:

> Hello,
>
> I am running PG 8.3. and following the guide found athttp://www.postgresql.org/docs/current/static/ddl-partitioning.html
>
>
> I have followed the steps outlined here nearly exactly with regards to using an insert trigger to call a function to insert data into the child partition. I am wondering why I am getting the record inserted in both the child and the parent partition when executing an insert into the parent.
>
>
> Is there a step missing from the DOC? Something else I need to do?

Are you sure you're not mistaking table inheritance for duplicates? If you're querying the master table without the ONLY keyword then you'll see the data from the child tables as well.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.

!DSPAM:737,4c1752e1286215067983550!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo F 2010-06-15 10:37:27 Re: Partial indexes instead of partitions
Previous Message Sachin Srivastava 2010-06-15 07:57:54 Re: Silent installer in Windows