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

From Abel Abraham Camarillo Ojeda
Subject Re: CREATE DOMAIN json vs built-in json
Date
Msg-id CAPD=2NgxuoGEQWJuX-c5nAe+jYkB=4gqNGLZtqAyCrR3Q3mVPg@mail.gmail.com
Whole thread Raw
In response to CREATE DOMAIN json vs built-in json  (Hitoshi Harada <umi.tanuki@gmail.com>)
Responses Re: CREATE DOMAIN json vs built-in json  (Abel Abraham Camarillo Ojeda <acamari@verlet.org>)
List pgsql-hackers
On Tue, Mar 20, 2012 at 2:44 AM, Hitoshi Harada <umi.tanuki@gmail.com> wrote:
> 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
>

Mmm...

_n_srv=# create domain text as text;
CREATE DOMAIN
_n_srv=#
_n_srv=# create domain int as text;
CREATE DOMAIN
_n_srv=#

Mmm...


pgsql-hackers by date:

Previous
From: Hitoshi Harada
Date:
Subject: CREATE DOMAIN json vs built-in json
Next
From: Abel Abraham Camarillo Ojeda
Date:
Subject: Re: CREATE DOMAIN json vs built-in json