Re: [BUGS] variadic flag doesn't work with "any" type

2010-12-13 Thread Robert Haas
On Fri, Dec 10, 2010 at 2:44 PM, Pavel Stehule wrote: > 2010/12/10 Tom Lane : >> Pavel Stehule writes: >>> 2010/12/9 Tom Lane : What exactly is the use-case for that? >> >>> I am working on function that can help with record updating. It's >>> based on polymorphic types. I would to allow a m

Re: [BUGS] variadic flag doesn't work with "any" type

2010-12-10 Thread Pavel Stehule
2010/12/10 Tom Lane : > Pavel Stehule writes: >> 2010/12/9 Tom Lane : >>> What exactly is the use-case for that? > >> I am working on function that can help with record updating. It's >> based on polymorphic types. I would to allow a multiple modification >> per one call - like UPDATE statement do

Re: [BUGS] variadic flag doesn't work with "any" type

2010-12-10 Thread Tom Lane
Pavel Stehule writes: > 2010/12/9 Tom Lane : >> What exactly is the use-case for that? > I am working on function that can help with record updating. It's > based on polymorphic types. I would to allow a multiple modification > per one call - like UPDATE statement does. > some like: > record_set_

Re: [BUGS] variadic flag doesn't work with "any" type

2010-12-09 Thread Pavel Stehule
2010/12/9 Tom Lane : > Pavel Stehule writes: >> I didn't explain it well, sorry > >> so I have a function foo(variadic "any") > >> usual calling like foo(10,20) or foo('a',10) working perfectly. But I >> have a problem with call with VARIADIC keyword > >> like foo(VARIADIC ARRAY[10,20]) or foo(VAR

Re: [BUGS] variadic flag doesn't work with "any" type

2010-12-09 Thread Tom Lane
Pavel Stehule writes: > I didn't explain it well, sorry > so I have a function foo(variadic "any") > usual calling like foo(10,20) or foo('a',10) working perfectly. But I > have a problem with call with VARIADIC keyword > like foo(VARIADIC ARRAY[10,20]) or foo(VARIADIC ARRAY['a','10']). > Keyw

Re: [BUGS] variadic flag doesn't work with "any" type

2010-12-09 Thread Pavel Stehule
2010/12/9 Tom Lane : > Pavel Stehule writes: >> There is missing expansion for variadic parameter from any array to >> real parameters when variadic type is "any". > > That's not a bug, it's intentional.  Variadic any is intended to let the > C function accept any old parameter list.  We should no

Re: [BUGS] variadic flag doesn't work with "any" type

2010-12-09 Thread Tom Lane
Pavel Stehule writes: > There is missing expansion for variadic parameter from any array to > real parameters when variadic type is "any". That's not a bug, it's intentional. Variadic any is intended to let the C function accept any old parameter list. We should not assume that we should do som

[BUGS] variadic flag doesn't work with "any" type

2010-12-09 Thread Pavel Stehule
Hello There is missing expansion for variadic parameter from any array to real parameters when variadic type is "any". It can be solved on C level, but in this moment we have not a access to parser, so we don't know, if variadic flag was used or not. Regards Pavel Stehule -- Sent via pgsql-bu