Skip site navigation (1) Skip section navigation (2)

Re: Problem with the default registration of the JSON adapter

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Re: Problem with the default registration of the JSON adapter
Date: 2013-07-19 19:02:59
Message-ID: 0B1C88B3-3554-4E44-ADF1-5185DF45A0D9@thebuild.com (view raw or flat)
Thread:
Lists: psycopg
On Jul 19, 2013, at 11:41 AM, Daniele Varrazzo wrote:

> Another solution would be of course to cast the result to text instead.

The good news is that a SELECT json_field::TEXT ... doesn't do any computation, so you get a text value containing the JSON back without conversion, efficiently.

--
-- Christophe Pettus
  xof(at)thebuild(dot)com



In response to

psycopg by date

Next:From: Alexey BorzenkovDate: 2013-07-21 14:33:15
Subject: Connection failures when using green
Previous:From: Daniele VarrazzoDate: 2013-07-19 18:41:06
Subject: Problem with the default registration of the JSON adapter

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group