Re: Partitionning by trigger

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Ali Pouya *EXTERN*" <alipouya2(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Partitionning by trigger
Date: 2013-02-26 10:51:34
Message-ID: A737B7A37273E048B164557ADEF4A58B057B8939@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ali Pouya wrote:
> I sent the following mail yesterday but I do not see it in the list.
> So I retry

It is there all right:
http://www.postgresql.org/message-id/CAEEEPmwq_3=hGEC69-2EkCWTiwq0dme==8SoU29E9k2DCCgUEw@mail.gmail.com

> 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 don't think that is possible.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dave Cramer 2013-02-26 12:22:52 Re: JDBC not returning update count from updateable view
Previous Message Ali Pouya 2013-02-26 10:14:53 Partitionning by trigger