Re: hstores in pl/python

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: hstores in pl/python
Дата
Msg-id AANLkTik0yFyrjORpOA6HaqnhBDb0OYXQzDjpUk5snRDz@mail.gmail.com
обсуждение исходный текст
Ответ на Re: hstores in pl/python  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: hstores in pl/python  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: hstores in pl/python  (Andrew Dunstan <andrew@dunslane.net>)
Re: hstores in pl/python  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
On Tue, Dec 14, 2010 at 11:51 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
>> On mån, 2010-12-13 at 10:55 -0500, Tom Lane wrote:
>>> We don't normally invent specialized syntax for a specific datatype.
>>> Not even if it's in core.
>
>> I think the idea would be to make associative arrays a kind of
>> second-order object like arrays, instead of a data type.
>
> I haven't actually figured out what the benefit would be, other than
> buzzword compliance and a chance to invent some random nonstandard
> syntax.  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.

> If they are allowed to be different types,
> what have you got but a record?  Surely SQL can do composite types
> already.

I think I mostly agree with this.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: hstores in pl/python
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Transaction-scope advisory locks