Re: Loading functions - Mailing list pgsql-admin

From Gaetano Mendola
Subject Re: Loading functions
Date
Msg-id 412FC59C.4090001@bigfoot.com
Whole thread Raw
In response to Loading functions  ("Kieran McCusker" <kieran.mccusker@kwest.info>)
List pgsql-admin
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;
BEGINRAISE NOTICE 'look at this string';        return 0;
END;
$$ LANGUAGE 'plpgsql';


Regards
Gaetano Mendola





pgsql-admin by date:

Previous
From: Naomi Walker
Date:
Subject: Re: Size of database
Next
From: kris pal
Date:
Subject: Re: vacuum pg_attribute causes high load