Search Postgresql Archives

Re: using COPY and PARTITON

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 10, 2009 at 12:58 AM, cjm1010<cjm1010@xxxxxxxxx> 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.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux