Skip site navigation (1) Skip section navigation (2)

Re: Problem with trigger function in C

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joe Halpin" <jhalpin100(at)gmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Problem with trigger function in C
Date: 2008-10-28 21:01:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
"Joe Halpin" <jhalpin100(at)gmail(dot)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/' language c;

> 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

In response to

pgsql-interfaces by date

Next:From: Sean DavisDate: 2008-11-05 18:07:11
Subject: JDBC and copy support
Previous:From: Joe HalpinDate: 2008-10-28 20:12:59
Subject: Re: Problem with trigger function in C

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group