Re: Composite Types and Function Parameters

Поиск
Список
Период
Сортировка
От Greg
Тема Re: Composite Types and Function Parameters
Дата
Msg-id 551529.46751.qm@web29713.mail.ird.yahoo.com
обсуждение исходный текст
Ответ на Re: Composite Types and Function Parameters  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
Hi Merlin, I completely forgot about hstore! I'll give it a go. Thanks!



From: Merlin Moncure <mmoncure@gmail.com>
To: Greg <grigorey@yahoo.co.uk>
Cc: Pavel Stehule <pavel.stehule@gmail.com>; pgsql-hackers@postgresql.org
Sent: Mon, 25 October, 2010 23:52:55
Subject: Re: [HACKERS] Composite Types and Function Parameters

On Mon, Oct 25, 2010 at 6:38 PM, Greg <grigorey@yahoo.co.uk> wrote:
>
> Hi Pavel, thanks! Yeah, thats what I though. I have to have a custom type or a very ugly looking solution for passing the params then.
>
> To Postgre dev. team: If anyone who involved in Postgre development reading this, just a feature suggestion: allow array that can accept combination of any data types to be passed to a function, for example:
>       // declare
>       create function TEST ( anytypearray[] ) ...
>       // calling
>       perform TEST (array[bool, int, etc.] ) ....
> This would make such a nice adition to the development for postgre. Although this may be complecated to achieve.

probably hstore would be more appropriate for something like that.
You can also declare functions taking composite arrays, anyarray,
variadic array, and variadic "any", although the latter requires
function implementation in C to get the most out of it.

merlin

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: add label to enum syntax
Следующее
От: Itagaki Takahiro
Дата:
Сообщение: Re: Extensible executor nodes for preparation of SQL/MED