Re: 9.3: bug related to json - Mailing list pgsql-general

From Torsten Förtsch
Subject Re: 9.3: bug related to json
Date
Msg-id 54ED8A82.2040405@gmx.net
Whole thread Raw
In response to Re: 9.3: bug related to json  (David G Johnston <david.g.johnston@gmail.com>)
Responses Re: 9.3: bug related to json  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 25/02/15 07:34, David G Johnston wrote:
> Torsten Förtsch wrote
>> > Is there anything similar for JSON scalars?
> IDK, but have you tried "::text"?

yes. Here is the difference

select * from (values (('{"a":"b"}'::json -> 'a')::text),
                       ('{"a":"b"}'::json ->> 'a')) t;
 column1
---------
 "b"
 b

Torsten


pgsql-general by date:

Previous
From: Torsten Förtsch
Date:
Subject: Re: 9.3: bug related to json
Next
From: Albe Laurenz
Date:
Subject: Re: Sequences not moved to new tablespace