Andrew Sullivan <andrew(at)libertyrms(dot)info> writes:
> How could it be the transport affects the time for the query as
> reported by the back end?
How much data is being sent back by the query?
Do you have SSL enabled? SSL encryption overhead is nontrivial,
especially if any renegotiations happen.
regards, tom lane