pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rui zhong <rick_rui@hotmail.com>
To: rick_rui@hotmail.com
To: pgsql-general@postgresql.org
To: pgsql-jdbc@postgresql.org
Subject: question on trigger
Date: Sat, 23 Jun 2001 23:10:58 -0000
Message-ID: <F207zdgJI7fG7rIgwbO0001bf2b@hotmail.com> (raw)


Hi,all:

This is my first time to use trigger. I try an example from programmer's 
guide. Firstly I save the procedure named trigf.c, then i try to comlile it 
by using SQL statement " create function trigf() returns opaque as 
'...path_to_so' language 'c' ", then I got error message as " Load of file 
/home/postgres/trigf.c failed: invalid ELF header ".  I don't know how to 
fix this, please help me out. Lots of thanks.

The including H file in trigf.c is :


#include "executor/spi.h"  /*this is what you need to work with SPI */
#include "commands/trigger.h"   /*-"- and triggers */

extern Datum trigf(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(trigf);

Datum
trigf(PG_FUNCTION_ARGS)
{ ... }




Rui






_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


view thread (12+ messages)  latest in thread

Message-ID: <F207zdgJI7fG7rIgwbO0001bf2b@hotmail.com>
Permalink:  ../F207zdgJI7fG7rIgwbO0001bf2b@hotmail.com/
Also on:    postgresql.org/message-id/F207zdgJI7fG7rIgwbO0001bf2b@hotmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rick_rui@hotmail.com, pgsql-jdbc@postgresql.org
  Subject: Re: question on trigger
  In-Reply-To: <F207zdgJI7fG7rIgwbO0001bf2b@hotmail.com>
  References: <F207zdgJI7fG7rIgwbO0001bf2b@hotmail.com>

* 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