Re: Urgent Help : Use of return from function/procedure.

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Anagha Joshi" <ajoshi(at)nulinkinc(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Urgent Help : Use of return from function/procedure.
Date: 2003-06-23 10:55:02
Message-ID: 200306231155.02330.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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 just
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
mailing-list archives at http://archives.postgresql.org - it was either this
list or "general".

--
Richard Huxton

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-06-23 11:01:49 Re: virtual table
Previous Message Tomasz Myrta 2003-06-23 09:09:42 Re: virtual table