Re: [HACKERS] plpgsql: support identif%TYPE[], (from ToDo)

2009-07-29 Thread Robert Haas
On Wed, Jul 29, 2009 at 1:44 AM, Pavel Stehulepavel.steh...@gmail.com wrote: 2009/7/29 Tom Lane t...@sss.pgh.pa.us: Pavel Stehule pavel.steh...@gmail.com writes: I would to solve some points from ToDo. I began with TYPE [] support. plpgsql's %type support is a crock that's going to have to be

Re: [HACKERS] plpgsql: support identif%TYPE[], (from ToDo)

2009-07-29 Thread Pavel Stehule
2009/7/29 Robert Haas robertmh...@gmail.com: On Wed, Jul 29, 2009 at 1:44 AM, Pavel Stehulepavel.steh...@gmail.com wrote: 2009/7/29 Tom Lane t...@sss.pgh.pa.us: Pavel Stehule pavel.steh...@gmail.com writes: I would to solve some points from ToDo. I began with TYPE [] support. plpgsql's %type

Re: [HACKERS] plpgsql: support identif%TYPE[], (from ToDo)

2009-07-29 Thread Pavel Stehule
2009/7/28 Martijn van Oosterhout klep...@svana.org: On Tue, Jul 28, 2009 at 10:53:08PM +0200, Pavel Stehule wrote: Hello I would to solve some points from ToDo. I began with TYPE [] support. I thing, so this should be relative simple, but there are one issue. snip My first idea is using

[HACKERS] plpgsql: support identif%TYPE[], (from ToDo)

2009-07-28 Thread Pavel Stehule
Hello I would to solve some points from ToDo. I began with TYPE [] support. I thing, so this should be relative simple, but there are one issue. There are syntax for declare array from scalar type - create or replace function x(a int) returns ... as $$ declare f a%type[] -- begin ... but there

Re: [HACKERS] plpgsql: support identif%TYPE[], (from ToDo)

2009-07-28 Thread Martijn van Oosterhout
On Tue, Jul 28, 2009 at 10:53:08PM +0200, Pavel Stehule wrote: Hello I would to solve some points from ToDo. I began with TYPE [] support. I thing, so this should be relative simple, but there are one issue. snip My first idea is using word element: create or replace function x(a int[])

Re: [HACKERS] plpgsql: support identif%TYPE[], (from ToDo)

2009-07-28 Thread Tom Lane
Pavel Stehule pavel.steh...@gmail.com writes: I would to solve some points from ToDo. I began with TYPE [] support. plpgsql's %type support is a crock that's going to have to be rewritten from the ground up as soon as we consolidate the lexer with the core. I wouldn't suggest spending any time

Re: [HACKERS] plpgsql: support identif%TYPE[], (from ToDo)

2009-07-28 Thread Pavel Stehule
2009/7/29 Tom Lane t...@sss.pgh.pa.us: Pavel Stehule pavel.steh...@gmail.com writes: I would to solve some points from ToDo. I began with TYPE [] support. plpgsql's %type support is a crock that's going to have to be rewritten from the ground up as soon as we consolidate the lexer with the