Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6892964FD09 for ; Tue, 28 Oct 2008 18:01:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 86675-07 for ; Tue, 28 Oct 2008 18:01:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 83C9F64FCAC for ; Tue, 28 Oct 2008 18:01:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m9SL1Mxq025778; Tue, 28 Oct 2008 17:01:22 -0400 (EDT) To: "Joe Halpin" cc: pgsql-interfaces@postgresql.org Subject: Re: Problem with trigger function in C In-reply-to: <4dc28b160810281312m7f9c7635sf60502bef468a77b@mail.gmail.com> References: <4dc28b160810281234g1292831awf4b8716d64f7f405@mail.gmail.com> <15986.1225224113@sss.pgh.pa.us> <4dc28b160810281312m7f9c7635sf60502bef468a77b@mail.gmail.com> Comments: In-reply-to "Joe Halpin" message dated "Tue, 28 Oct 2008 15:12:59 -0500" Date: Tue, 28 Oct 2008 17:01:22 -0400 Message-ID: <25777.1225227682@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/15 X-Sequence-Number: 6816 "Joe Halpin" writes: > Sorry I forgot to add that part. Here's how I did that: > sn=# create function xqueryTrigger() returns trigger as > '/usr/local/lib/postgresql/xqueryTrigger.so' language c; > CREATE FUNCTION > Is the function name case sensitive? Well, if you don't quote it then it's forced to all lower case, same as any other SQL identifier. ... and that is the problem, because your function's C name is xquerytrigger but the V1 macro says xqueryTrigger. I must be blind today :-(. Get that all in sync and you should be good. regards, tom lane