CREATE DOMAIN json vs built-in json

From: Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: CREATE DOMAIN json vs built-in json
Date: 2012-03-20 08:44:18
Message-ID: CAP7QgmnVC_uZhGOTVbGbEjiBzjWkgswYCfVFYVHHNfxn9SZ=8Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?

Thanks,
--
Hitoshi Harada

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Abel Abraham Camarillo Ojeda 2012-03-20 08:47:57 Re: CREATE DOMAIN json vs built-in json
Previous Message Daniel Farina 2012-03-20 08:38:52 Re: pg_terminate_backend for same-role