pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Anagha Joshi <ajoshi@nulinkinc.com>
To: pgsql-sql@postgresql.org
Subject: Re: Urgent Help : Use of return from function/procedure.
Date: Mon, 23 Jun 2003 11:55:02 +0100
Message-ID: <200306231155.02330.dev@archonet.com> (raw)
In-Reply-To: <FF851C7EEB75954F9BCFB5CA117AB1EC61A446@delta.nulinkinc.com>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A446@delta.nulinkinc.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <200306231155.02330.dev@archonet.com>
Permalink:  ../200306231155.02330.dev@archonet.com/
Also on:    postgresql.org/message-id/200306231155.02330.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, ajoshi@nulinkinc.com
  Subject: Re: Urgent Help : Use of return from function/procedure.
  In-Reply-To: <200306231155.02330.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox