Received: from hotmail.com (f207.law10.hotmail.com [64.4.15.207]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5NNB5a67763; Sat, 23 Jun 2001 19:11:06 -0400 (EDT) (envelope-from rick_rui@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 23 Jun 2001 16:10:59 -0700 Received: from 134.129.90.180 by lw10fd.law10.hotmail.msn.com with HTTP; Sat, 23 Jun 2001 23:10:58 GMT X-Originating-IP: [134.129.90.180] From: "rui zhong" To: rick_rui@hotmail.com, pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org Subject: question on trigger Date: Sat, 23 Jun 2001 23:10:58 -0000 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_79f3_51c4_6a3f" Message-ID: X-OriginalArrivalTime: 23 Jun 2001 23:10:59.0296 (UTC) FILETIME=[C3B26E00:01C0FC39] X-Archive-Number: 200106/911 X-Sequence-Number: 11486 This is a multi-part message in MIME format. ------=_NextPart_000_79f3_51c4_6a3f Content-Type: text/plain; format=flowed 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 ------=_NextPart_000_79f3_51c4_6a3f Content-Type: text/plain; format=flowed ------=_NextPart_000_79f3_51c4_6a3f--