pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Halpin <jhalpin100@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Problem with trigger function in C
Date: Tue, 28 Oct 2008 17:01:22 -0400
Message-ID: <25777.1225227682@sss.pgh.pa.us> (raw)
In-Reply-To: <4dc28b160810281312m7f9c7635sf60502bef468a77b@mail.gmail.com>
References: <4dc28b160810281234g1292831awf4b8716d64f7f405@mail.gmail.com>
	<15986.1225224113@sss.pgh.pa.us>
	<4dc28b160810281312m7f9c7635sf60502bef468a77b@mail.gmail.com>

"Joe Halpin" <jhalpin100@gmail.com> 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



view thread (4+ messages)

Message-ID: <25777.1225227682@sss.pgh.pa.us>
Permalink:  ../25777.1225227682@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25777.1225227682@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jhalpin100@gmail.com
  Subject: Re: Problem with trigger function in C
  In-Reply-To: <25777.1225227682@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox