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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse psycopg by date

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