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

From Kevin Jenkins
Subject htonl necesssary for PQexecParams input?
Date
Msg-id 449ABCA4.2070209@rakkar.org
Whole thread Raw
In response to Re: ERROR: there is no parameter $1  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: htonl necesssary for PQexecParams input?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Previously I was getting a bad result when calling PQexecParams with
binary results because PostgreSQL stores its data big endian.  So I
had to do ntohl on the result to get it to little endian.

My question is, do I also need to do htonl then, as in this scenario?

outStr[0]="blah";
outLengths[0]=htonl((int)strlen("blah"));
formats[0]=1;
PQexecParams(pgConn, query,1,0,outStr,outLengths,formats,1);

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unable to start pg service
Next
From: Tom Lane
Date:
Subject: Re: VACUUM hanging on idle system