Re: hstores in pl/python

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: hstores in pl/python
Дата
Msg-id AANLkTi=SrUvAU-7yRFw59Hwfmj0s+=d64vc4oc4m1RyM@mail.gmail.com
обсуждение исходный текст
Ответ на Re: hstores in pl/python  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
2010/12/14 Tom Lane <tgl@sss.pgh.pa.us>:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Tue, Dec 14, 2010 at 11:51 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> If the element values all have to be the same type, you've
>>> basically got hstore.
>
>> Not exactly, because in hstore all the element values have to be,
>> specifically, text.  Having hstores of other kinds of objects would,
>> presumably, be useful.
>
> Maybe, but I'm sure they'd have far less application than hstore.
> There's a reason why that's based on text and not some other type ...
>

I don't think. For example - numeric array indexed with string is
often use case. Now you have to use a PLperl hashs.

Pavel

>                        regards, tom lane
>


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: hstores in pl/python
Следующее
От: Robert Haas
Дата:
Сообщение: Re: hstores in pl/python