Received: from thehog.bk.pciwest.net (thehog.bk.pciwest.net [64.5.4.153]) by hub.org (8.10.1/8.10.1) with SMTP id e6BLxFW51990 for ; Tue, 11 Jul 2000 17:59:15 -0400 (EDT) Received: (qmail 32557 invoked from network); 11 Jul 2000 21:59:22 -0000 Received: from thehog.bk.pciwest.net (HELO presys.com) (64.5.4.153) by thehog.bk.pciwest.net with SMTP; 11 Jul 2000 21:59:22 -0000 Message-ID: <396B98BA.4263CAAB@presys.com> Date: Tue, 11 Jul 2000 14:59:22 -0700 From: Hitesh Patel X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Getting INSERT values on a trigger Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/71 I am trying to use a C function to get the values inputted for a given row. I have defined the trigger as: CREATE TRIGGER test AFTER INSERT OR UPDATE OR DELETE on testrel FOR EACH ROW EXECUTE PROCEDURE testfunc(); Now say if I do a 'INSERT INTO testrel VALUES('1','string');' how can I grab the values for each field within testfunc() and act on them (in this case spit them out to another file)? I have read the docs and can't seem to find how to retrieve the values... -- +---------------------------------+----------------------------+ | Hitesh Patel | Voice: (541) 759-3126 | | | Fax: (541) 759-3214 | | Preferred Communications Inc. | Email: hitesh@pciwest.net | +---------------------------------+----------------------------+ perl -e 'print pack("B*", "0100100100100000011101000110100001" . "101001011011100110101100100000010010010010000001100100011100" . "100110000101101110011010110010000001110011011011110110110101" . "100101001000000110001001100001011001000010000001001110011110" . "010111000101110101011010010110110000001010");'