X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5B41D5E3632 for ; Fri, 27 Aug 2004 21:02:36 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03326-10 for ; Sat, 28 Aug 2004 00:02:32 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id CE3495E46C2 for ; Fri, 27 Aug 2004 21:02:14 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i7S02CLq009330 for ; Sat, 28 Aug 2004 00:02:13 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7RNb93I003030 for pgsql-admin@postgresql.org; Fri, 27 Aug 2004 23:37:09 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Loading functions Date: Sat, 28 Aug 2004 01:37:00 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 29 Message-ID: <412FC59C.4090001@bigfoot.com> References: <000901c48b70$8c70d7a0$8c00a8c0@Kieran> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Kieran McCusker User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en In-Reply-To: <000901c48b70$8c70d7a0$8c00a8c0@Kieran> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/292 X-Sequence-Number: 14687 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 '' 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