Re: variadic function support
| От | Pavel Stehule | 
|---|---|
| Тема | Re: variadic function support | 
| Дата | |
| Msg-id | 162867790807141515p7a09452fh16b1f637a89a7b85@mail.gmail.com обсуждение исходный текст | 
| Ответ на | Re: variadic function support ("Pavel Stehule" <pavel.stehule@gmail.com>) | 
| Ответы | Re: variadic function support | 
| Список | pgsql-patches | 
Hello
this version is WIP - I have to clean comments, and will do some
documentation. But I am sure, I am not able explain this feature in
english well. Please, can some body help me with documentation? So
now, plpgsql is more/less ruby :)
postgres=# select myleast(variadic array[1,2,3,4,-1]);
 myleast
---------
      -1
(1 row)
postgres=# select myleast(variadic array[1.1, -5.5]);
 myleast
---------
    -5.5
(1 row)
postgres=# --test with empty variadic call parameter
postgres=# select myleast(variadic array[]::int[]);
 myleast
---------
(1 row)
postgres=# select myleast(1.1,-5.5);
 myleast
---------
    -5.5
regards
Pavel
2008/7/14 Pavel Stehule <pavel.stehule@gmail.com>:
> 2008/7/14 Tom Lane <tgl@sss.pgh.pa.us>:
>> "Pavel Stehule" <pavel.stehule@gmail.com> writes:
>>> 2008/7/14 Tom Lane <tgl@sss.pgh.pa.us>:
>>>> Are you intending to change this right now and resubmit, or is it
>>>> work for later?
>>
>>> I prefer separate it to other patch.
>>
>> It seems a fairly important part of the feature, especially given the
>> connection to the zero-argument issue.
>
> ok tomorrow I have some work, but I can do it to Friday.
>
> regards
> Pavel Stehule
>>
>>                        regards, tom lane
>>
>
		
	Вложения
В списке pgsql-patches по дате отправления: