order of statements in create function

From: Markus Bertheau <twanger(at)bluetwanger(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: order of statements in create function
Date: 2004-07-09 17:16:14
Message-ID: 1089393374.2719.6.camel@teetnang
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

why does everyone write

CREATE FUNCTION foo() RETURNS INTEGER AS '
blah blah
' LANGUAGE 'plpgsql';

I've never seen for example:

CREATE FUNCTION foo()
RETURNS INTEGER
LANGUAGE 'plpgsql'
AS '
blah blah
';

Is there a special reason to this? I have a hard time believing that
everyone does it the same way by coincidence.

Thanks.

--
Markus Bertheau <twanger(at)bluetwanger(dot)de>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2004-07-09 17:27:42 Re: adding a db-specific user
Previous Message Sally Sally 2004-07-09 17:06:20 adding a db-specific user