Re: jsonb and nested hstore

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: jsonb and nested hstore
Дата
Msg-id 20140210123904.GA10885@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: jsonb and nested hstore  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: jsonb and nested hstore  (Andrew Dunstan <andrew@dunslane.net>)
Re: jsonb and nested hstore  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
On 2014-02-10 07:27:59 -0500, Andrew Dunstan wrote:
> On 02/10/2014 05:05 AM, Andres Freund wrote:
> >I'd suggest making the format discernible from possible different future
> >formats, to allow introducing a proper binary at some later time. Maybe
> >just send a int8 first, containing the format.
> >
> 
> Teodor privately suggested something similar.  I was thinking of just
> sending a version byte, which for now would be '\x01'. An int8 seems like
> more future-proofing provision than we really need.

Hm. Isn't that just about the same? I was thinking of the c type int8,
not the 64bit type. It seems cleaner to do a pg_sendint(..., 1, 1) than
to do it manually inside the string.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: jsonb and nested hstore
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: jsonb and nested hstore