Re: htonl necesssary for PQexecParams input? - Mailing list pgsql-general

From Tom Lane
Subject Re: htonl necesssary for PQexecParams input?
Date
Msg-id 1454.1150997683@sss.pgh.pa.us
Whole thread Raw
In response to Re: htonl necesssary for PQexecParams input?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Michael Fuhr <mike@fuhr.org> writes:
> ... the length needs to be in host byte order.

Right.  The only place where a libpq client would be dealing with
network-byte-order data is within binary-format values for data fields
(in SELECT results) or binary-format parameters (when transmitting to
the database).  Metadata like field lengths is just in the local native
representation.

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: htonl necesssary for PQexecParams input?
Next
From: "Todd A. Cook"
Date:
Subject: Re: Out of memory error in 8.1.0 Win32