pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Loading functions
2+ messages / 2 participants
[nested] [flat]

* Loading functions
@ 2004-08-26 13:28 Kieran McCusker <kieran.mccusker@kwest.info>
  2004-08-27 23:37 ` Re: Loading functions Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Kieran McCusker @ 2004-08-26 13:28 UTC (permalink / raw)
  To: pgsql-admin

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';

This would remove the issue with parsing for begin...ends (or whatever the
language was using)

Just a thought

Kieran




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Loading functions
  2004-08-26 13:28 Loading functions Kieran McCusker <kieran.mccusker@kwest.info>
@ 2004-08-27 23:37 ` Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Gaetano Mendola @ 2004-08-27 23:37 UTC (permalink / raw)
  To: Kieran McCusker <kieran.mccusker@kwest.info>

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







^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-08-27 23:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-26 13:28 Loading functions Kieran McCusker <kieran.mccusker@kwest.info>
2004-08-27 23:37 ` Gaetano Mendola <mendola@bigfoot.com>

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