Re: Suggestions please: names for function cachabilityattributes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Suggestions please: names for function cachabilityattributes
Date
Msg-id 15689.1018712074@sss.pgh.pa.us
Whole thread Raw
In response to Re: Suggestions please: names for function cachabilityattributes  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Basically I'd like to write

>     CREATE FUNCTION name (args, ...) RETURNS type
>       AS '...'
>       LANGUAGE foo
>       STATIC
>       IMPLICIT CAST

> (where everything after RETURNS can be in random order).

No strong objection here; but you'll still have to accept the old syntax
for backwards compatibility with existing dump scripts.  I also worry
that this will end up forcing us to reserve a lot more keywords.  Not so
much for CREATE FUNCTION, but in CREATE OPERATOR, CREATE DOMAIN and
friends I do not think you'll be able to do this without making the
keywords reserved (else how do you tell 'em from parts of typenames
and expressions?).

Given that it's not gonna be SQL-spec anyway, I'm not entirely sure
I see the point of changing.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: DROP COLUMN (was RFC: Restructuring pg_aggregate)
Next
From: Tom Lane
Date:
Subject: Re: 7.3 schedule