Re: using COPY and PARTITON - Mailing list pgsql-general

From Scott Marlowe
Subject Re: using COPY and PARTITON
Date
Msg-id dcc563d10908101059u65bed965qce10cec703308ce6@mail.gmail.com
Whole thread Raw
In response to Re: using COPY and PARTITON  (cjm1010 <cjm1010@naver.com>)
List pgsql-general
On Mon, Aug 10, 2009 at 12:58 AM, cjm1010<cjm1010@naver.com> wrote:
>
> thanks for reply
>
> I am using rules with libpq instead of triggers now.
> When INSERT was used, it was possible to insert it in CHILD TABLE well.
> However, if COPY is used, it is possible to insert it only in PARENT TABLE.
> Can triggers be used with libpq?
> And, if trigger is used, can it straighten out that problem?

Yep, triggers work just fine with libpq (if they didn't FK constraints
wouldn't work).  I switched from rules to triggers a while back for my
reporting / stats database and they work a charm.

pgsql-general by date:

Previous
From: Vick Khera
Date:
Subject: Re: Postgres memory question
Next
From: Tim Hart
Date:
Subject: Re: PQstatus does not seem to work