Re: Typed hstore proposal

Поиск
Список
Период
Сортировка
От Benedikt Grundmann
Тема Re: Typed hstore proposal
Дата
Msg-id 20111222155148.GW7768@ldn-qws-004.delacy.com
обсуждение исходный текст
Ответ на Re: Typed hstore proposal  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 22/12/11 10:44, Tom Lane wrote:
> "Johann 'Myrkraverk' Oskarsson" <johann@2ndquadrant.com> writes:
> > I mean to create a typed hstore, called tstore for now.
> 
> Um ... what is the point of this, exactly?  From what I've seen, most
> applications for hstore are pretty happy with the fact that hstore is
> only weakly typed, and if an entry *is* an integer, or a float, or
> whatever else, it's not hard to cast to and from text as needed.

More over it is also easy with the current hstore to add constraints like this:
 "contracts_is_an_integer" CHECK ((tags -> 'contracts'::text) ~ '^[0-9]+$'::text)

to ensure that it actually is.


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Real-life range datasets
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Page Checksums + Double Writes