Re: Why is pq_begintypsend so slow? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why is pq_begintypsend so slow?
Date
Msg-id 2879.1589825333@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why is pq_begintypsend so slow?  (Ranier Vilela <ranier.vf@gmail.com>)
List pgsql-hackers
Ranier Vilela <ranier.vf@gmail.com> writes:
> Again, I see problems with the types declared in Postgres.
> 1. pq_sendint32 (StringInfo buf, uint32 i)
> 2. extern void pq_sendbytes (StringInfo buf, const char * data, int
> datalen);

We could spend the next ten years cleaning up minor discrepancies
like that, and have nothing much to show for the work.

> To avoid converting from (int) to (uint32), even if afterwards there is a
> conversion from (uint32) to (int)?

You do realize that that conversion costs nothing?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: fill_extraUpdatedCols is done in completely the wrong place
Next
From: Tom Lane
Date:
Subject: Re: Two fsync related performance issues?