Re: Oid registry

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Oid registry
Дата
Msg-id 506229B5.9030305@gmx.net
обсуждение исходный текст
Ответ на Re: Oid registry  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 9/25/12 9:18 AM, Andrew Dunstan wrote:
> No, the difficulty (or at least the first difficulty) is in having the
> code recognize that it has an hstore at all. The code picks apart the
> record field by field at run time and takes various actions depending on
> the field's type. For any type it doesn't recognize it just outputs the
> value as a string, and so that's what it does with hstore. Mostly this
> is the right thing but in the hstore case it's rather sad.

But if you have a cast defined from hstore to json, then it is
unambiguous, because the pg_cast entry binds the types together by OID.




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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Oid registry
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Oid registry