pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Åkerud <zilch@home.se>
To: PostgreSQL-general <pgsql-general@postgresql.org>
Subject: Re: question on trigger
Date: Sun, 24 Jun 2001 01:21:38 +0200
Message-ID: <000801c0fcaa$f4e2ad70$c901a8c0@automatic100> (raw)
References: <F207zdgJI7fG7rIgwbO0001bf2b@hotmail.com>


Judging by the error message, I would say it looks for a compiled version of
your file.

Daniel Åkerud


>
> 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
>


----------------------------------------------------------------------------
----


>


----------------------------------------------------------------------------
----


>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>




view thread (12+ messages)  latest in thread

Message-ID: <000801c0fcaa$f4e2ad70$c901a8c0@automatic100>
Permalink:  ../000801c0fcaa$f4e2ad70$c901a8c0@automatic100/
Also on:    postgresql.org/message-id/000801c0fcaa$f4e2ad70$c901a8c0@automatic100

 · 

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-general@postgresql.org
  Cc: zilch@home.se
  Subject: Re: question on trigger
  In-Reply-To: <000801c0fcaa$f4e2ad70$c901a8c0@automatic100>

* 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