X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id B072F30F5E4 for ; Mon, 23 Jun 2003 10:55:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 26363-07 for ; Mon, 23 Jun 2003 07:55:20 -0300 (ADT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id 9FAEA30F597 for ; Mon, 23 Jun 2003 07:55:19 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 19UOyk-0003Qu-0X; Mon, 23 Jun 2003 11:55:18 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 442AD17015; Mon, 23 Jun 2003 11:55:17 +0100 (BST) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id 9F50317014; Mon, 23 Jun 2003 11:55:16 +0100 (BST) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: "Anagha Joshi" , Subject: Re: Urgent Help : Use of return from function/procedure. Date: Mon, 23 Jun 2003 11:55:02 +0100 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306231155.02330.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Archive-Number: 200306/259 X-Sequence-Number: 14017 On Monday 23 Jun 2003 6:42 am, Anagha Joshi wrote: > Hi, > I'm new to postgres and using version 7.2.4 > > I've created a trigger and function which does the following: > trigger 'T' fires after insert on a spcific table takes place > and it executes function 'F' > > Function 'F' returns the new record inserted by 'return new' statement. > > Now my question is: > How can I use this 'new' value in my client program? In this prgm., I > want to know which all values are inserted into the table. Short answer - you don't. I'm not sure why you want to do this - if you jus= t=20 inserted the new values, surely you know what they are? There was something very similar to this last week, I'd have a look in the= =20 mailing-list archives at http://archives.postgresql.org - it was either thi= s=20 list or "general". --=20 Richard Huxton