Re: multiple CREATE FUNCTION AS items for PLs - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: multiple CREATE FUNCTION AS items for PLs
Date
Msg-id 1355693132.4311.17.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: multiple CREATE FUNCTION AS items for PLs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sun, 2012-12-16 at 13:03 -0500, Tom Lane wrote:
> Sure, but wouldn't it be cleaner to do that via some language-specific
> syntax inside the function string?  I'm imagining some syntax like
> 
>         CREATE FUNCTION ... AS $$
>         global[ some definitions here ]
>         function code here
>         $$;
> 
> where the PL would be responsible for pulling off the "global" chunk
> and structuring what it outputs accordingly.

But then the language text wouldn't be Python anymore.




pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: WIP: index support for regexp search
Next
From: "Karl O. Pinc"
Date:
Subject: Re: Doc patch, further describe and-mask nature of the permission system