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