Partitionning by trigger

From: Ali Pouya <alipouya2(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Partitionning by trigger
Date: 2013-02-26 10:14:53
Message-ID: CAEEEPmyb+YViieqDiT2Rg5GcwHOT=Tx8nXS47oitBfGmCMwkWQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
I sent the following mail yesterday but I do not see it in the list.
So I retry
==============

Hi,
I have created a partitionned table and a Pl/PgSQL trigger exactly as
explained here<http://www.postgresql.org/docs/9.2/static/ddl-partitioning.html>in
the documentation.

It works fine but the INSERT and COPY commands return zero instead of the
number of the rows actually inserted. Worse : the RETURNING clause returns
NULL when inserting through the trigger.

I encounter the same problem with a C language trigger function.

Is there anyway to obtain a behavior similar to that of the direct
insertion ?

I use PostgreSQL 9.2.3 in Linux Fedora 2.6 environment.
I can send a simplified self contained test case if required.

Thanks for your answer

Best Regards
Ali Pouya

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2013-02-26 10:51:34 Re: Partitionning by trigger
Previous Message Kevin Grittner 2013-02-26 07:48:09 Re: Floating point error