On Jul 22, 2013, at 9:06 AM, Federico Di Gregorio wrote:
> Looking forward, I'd say that if a type has only one useful
> representation, that one should be used; but if it has multiple useful
> representations the *simplest* one should be the default.
I have to say that I find the current situation pleasing: psycopg2 does the most natural thing with the type (converts
itto a data structure, which is after all what json is encoding) if you ask for the base type. If you want the text
version,just cast it to the text version in the query, and that's what you get, parallel with every other type.
--
-- Christophe Pettus
xof@thebuild.com