Re: CREATE DOMAIN json vs built-in json - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CREATE DOMAIN json vs built-in json
Date
Msg-id 24204.1332251576@sss.pgh.pa.us
Whole thread Raw
In response to CREATE DOMAIN json vs built-in json  (Hitoshi Harada <umi.tanuki@gmail.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Memory usage during sorting
Next
From: Alvaro Herrera
Date:
Subject: Re: Error trying to compile a simple C trigger