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. ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster