[HACKERS] Anonymous code blocks vs CREATE LANGUAGE

2009-09-22 Thread Tom Lane
I'm going through the anonymous-code-blocks patch now. There are some things missing, notably the ability to create a language with an anonymous-code-block handler. The only way you can do it is to have a pg_pltemplate entry, which is certainly not good enough for languages not distributed with

Re: [HACKERS] Anonymous code blocks vs CREATE LANGUAGE

2009-09-22 Thread Robert Haas
On Tue, Sep 22, 2009 at 1:26 PM, Tom Lane t...@sss.pgh.pa.us wrote: I'm going through the anonymous-code-blocks patch now.  There are some things missing, notably the ability to create a language with an anonymous-code-block handler.  The only way you can do it is to have a pg_pltemplate

Re: [HACKERS] Anonymous code blocks vs CREATE LANGUAGE

2009-09-22 Thread David Fetter
On Tue, Sep 22, 2009 at 01:50:45PM -0400, Robert Haas wrote: On Tue, Sep 22, 2009 at 1:26 PM, Tom Lane t...@sss.pgh.pa.us wrote: I'm going through the anonymous-code-blocks patch now.  There are some things missing, notably the ability to create a language with an anonymous-code-block

Re: [HACKERS] Anonymous code blocks vs CREATE LANGUAGE

2009-09-22 Thread Andrew Dunstan
Tom Lane wrote: I'm going through the anonymous-code-blocks patch now. There are some things missing, notably the ability to create a language with an anonymous-code-block handler. The only way you can do it is to have a pg_pltemplate entry, which is certainly not good enough for languages

Re: [HACKERS] Anonymous code blocks vs CREATE LANGUAGE

2009-09-22 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: Should we consider another generic options syntax, while we're on a roll? In the long run, that's the best way to avoid having a zillion keywords. If there were any near-term prospect of more options for languages, I might agree ... but there isn't,