Accessing structured datatypes using libpq - Mailing list pgsql-general

From Raimo Jormakka
Subject Accessing structured datatypes using libpq
Date
Msg-id CAMZtG2tQNrDLJStQtfzppCt5tr0T_a0hUEXV8Uh2SR6PwZ4qjA@mail.gmail.com
Whole thread Raw
Responses Re: Accessing structured datatypes using libpq
Re: Accessing structured datatypes using libpq
List pgsql-general
Hi,

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?

Cheers,
Raimo

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Question about partial functional indexes and the query planner
Next
From: John R Pierce
Date:
Subject: Re: Accessing structured datatypes using libpq