pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Kieran McCusker <kieran.mccusker@kwest.info>
Subject: Re: Loading functions
Date: Sat, 28 Aug 2004 01:37:00 +0200
Message-ID: <412FC59C.4090001@bigfoot.com> (raw)
In-Reply-To: <000901c48b70$8c70d7a0$8c00a8c0@Kieran>
References: <000901c48b70$8c70d7a0$8c00a8c0@Kieran>

Kieran McCusker wrote:

> Hi
> 
> My biggest bugbear with Postgresql is the double quoting when writing
> functions.  Has anyone suggested a possible syntax such as :-
> 
> create or replace function sp_AddContact(varchar)
> returns integer from '<filename>' LANGUAGE 'plpgsql';

No, but in the near future with 8.0 version you can:

create or replace function sp_AddContact(varchar)
returns integer AS $$
DECLARE
    a ALIAS FOR $1;	
BEGIN
	RAISE NOTICE 'look at this string';
         return 0;
END;
$$ LANGUAGE 'plpgsql';


Regards
Gaetano Mendola







view thread (2+ messages)

Message-ID: <412FC59C.4090001@bigfoot.com>
Permalink:  ../412FC59C.4090001@bigfoot.com/
Also on:    postgresql.org/message-id/412FC59C.4090001@bigfoot.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com, kieran.mccusker@kwest.info
  Subject: Re: Loading functions
  In-Reply-To: <412FC59C.4090001@bigfoot.com>
  References: <000901c48b70$8c70d7a0$8c00a8c0@Kieran> <412FC59C.4090001@bigfoot.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