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 16:01:53 -0400
Message-ID: <15986.1225224113@sss.pgh.pa.us> (raw)
In-Reply-To: <4dc28b160810281234g1292831awf4b8716d64f7f405@mail.gmail.com>
References: <4dc28b160810281234g1292831awf4b8716d64f7f405@mail.gmail.com>

"Joe Halpin" <jhalpin100@gmail.com> writes:
> I'm new at this and I apologize if I got the wrong list, but I'm
> trying to write a trigger function in C which is linked in with
> libxqilla and is supposed to run an xquery against some xml we have
> stored in a column. I find that when the function is entered fcinfo is
> null, which causes a segfault.

AFAIK the only way fcinfo would be null is if PG didn't think that the
function was V1 call convention.  I see that you do have the
PG_FUNCTION_INFO_V1 macro in there, which eliminates the most obvious
explanation.  Are you sure that the SQL-level CREATE FUNCTION command
references this function name and not some other one?

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <15986.1225224113@sss.pgh.pa.us>
Permalink:  ../15986.1225224113@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15986.1225224113@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: <15986.1225224113@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