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

a simple trigger?

From: "Nguyen , Nguyen" <Nguyen_Nguyen(at)MyCio(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: a simple trigger?
Date: 2000-10-27 22:25:35
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general

i have created a trigger that executes a c function, foo(), after something
is inserted into my table.  foo() is supposed to simply write a string to
some file.  but after i do an INSERT, nothing is written. 
i compiled the source file:
gcc -fPIC -g -c a.c 
and then made a shared library: 
gcc -shared -W1 -soname, -o a.o -lc  
then i created the function before i created my trigger.
so what am i doing wrong?

i also tried creating a raw psql function (CREATE FUNCTION...) for my
trigger to call, but when i tried creating the trigger, it complained: the
function has to return an opaque type.  but sql functions can't return type
opaque.  what do i do?   

i would appreciate any help anyone could give me.


pgsql-general by date

Next:From: Lamar OwenDate: 2000-10-27 22:25:41
Subject: Re: Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)
Previous:From: Bruce MomjianDate: 2000-10-27 22:15:40
Subject: Re: [HACKERS] Re:RPM dependencies (Was: 7.0 vs. 7.1 (was: latest version?))

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