Re: Accessing structured datatypes using libpq

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Accessing structured datatypes using libpq
Date: 2014-06-11 06:44:26
Message-ID: 5397FACA.7090803@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/10/2014 11:20 PM, Raimo Jormakka wrote:
>
> What is the recommended way of accessing structured data-types
> (especially JSONB and HSTORE) using libpq? It seems that by default
> JSONB data for example is returned as text.
>
> Is it not possible to have binary access to these data-types? If it is
> possible, then how do I do it exactly as the only thing I get from
> libpq is a void-pointer?

those are text data types. there is no binary representations.

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raimo Jormakka 2014-06-11 09:59:33 Re: Accessing structured datatypes using libpq
Previous Message Raimo Jormakka 2014-06-11 06:20:55 Accessing structured datatypes using libpq