Re: multiple CREATE FUNCTION AS items for PLs

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: multiple CREATE FUNCTION AS items for PLs
Date: 2012-12-16 21:25:32
Message-ID: 1355693132.4311.17.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Karl O. Pinc 2012-12-16 21:40:17 Re: Doc patch, further describe and-mask nature of the permission system
Previous Message Alexander Korotkov 2012-12-16 21:25:06 Re: WIP: index support for regexp search