pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Barwick <barwick@gmx.net>
To: Kumar <sgnerd@yahoo.com.sg>
To: psql <pgsql-sql@postgresql.org>
Subject: Re: Name the Parameters
Date: Sat, 6 Sep 2003 07:21:26 +0200
Message-ID: <200309060721.26358.barwick@gmx.net> (raw)
In-Reply-To: <003501c37431$59f9f9c0$7502a8c0@hdsc.com>
References: <003501c37431$59f9f9c0$7502a8c0@hdsc.com>

On Saturday 06 September 2003 06:42, Kumar wrote:
> Dear Gurus,
>
> Is it possible to name the IN parameters of the PLpgSQL Functions. Because
> naming the parameter will ease coding. See the following function for
> insert, having 10 parameters as a input.

No, though there is an item on the TODO list IIRC. 

Using ALIAS FOR might make things easier though, something
along the lines of:

  DECLARE
   address_id ALIAS FOR $1;
   address ALIAS FOR $2;
   ...
  BEGIN
   ...

  END;

Ian Barwick
barwick@gmx.net




view thread (2+ messages)

Message-ID: <200309060721.26358.barwick@gmx.net>
Permalink:  ../200309060721.26358.barwick@gmx.net/
Also on:    postgresql.org/message-id/200309060721.26358.barwick@gmx.net

 · 

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: barwick@gmx.net, sgnerd@yahoo.com.sg
  Subject: Re: Name the Parameters
  In-Reply-To: <200309060721.26358.barwick@gmx.net>

* 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