Re: have you feel anything when you read this ?

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: "Eugene E(dot)" <sad(at)bankir(dot)ru>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: have you feel anything when you read this ?
Date: 2006-04-06 12:33:20
Message-ID: 20060406052747.Q93517@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Thu, 6 Apr 2006, Stephan Szabo wrote:

> On Thu, 6 Apr 2006, Eugene E. wrote:
>
> If you meant that you must retrieve them in a separate query, you're
> incorrect, since you *could* use the binary form for the others. I can't
> understand if you don't realize that there is one for all these various
> types, or that you just don't wish to use it (for example, I believe using
> %d on ntohl(value from pqgetvalue) or something similar will print your
> integer).

For notes sake, the example code with binary retrieval in the docs seems
to have
ntohl(*((uint32_t *) iptr))
for iptr being the result of PQgetvalue on an integer column.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Eugene E. 2006-04-06 12:33:31 Re: have you feel anything when you read this ?
Previous Message Stephan Szabo 2006-04-06 11:52:55 Re: have you feel anything when you read this ?