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