Re: CREATE DOMAIN json vs built-in json

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE DOMAIN json vs built-in json
Дата
Msg-id 24204.1332251576@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CREATE DOMAIN json vs built-in json  (Hitoshi Harada <umi.tanuki@gmail.com>)
Список pgsql-hackers
Hitoshi Harada <umi.tanuki@gmail.com> writes:
> I've noticed our plv8 regression test now fails.  It has CREATE DOMAIN
> json AS text ... and validates text via v8's JSON.parse(), which was
> working before introducing built-in json type.  The test itself can be
> solved simply by creating schema, but my surprise is that we allow a
> domain whose name is the same as other base type.  Is it intentional?

Sure.  The built-in type is in the pg_catalog schema, but your domain
is (most likely) being created in the public schema.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Memory usage during sorting
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Error trying to compile a simple C trigger