pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ranier Vilela <ranier.vf@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: David Fetter <david@fetter.org>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Why is pq_begintypsend so slow?
Date: Mon, 18 May 2020 14:08:53 -0400
Message-ID: <2879.1589825333@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEudQAphOafu0C4PRquVwXindHwrsnDGKpDPr4r57bJe-5zpUw@mail.gmail.com>
References: <CAMkU=1whbRDUwa4eayD9+59K-coxO9senDkPRbTn3cg0pUz4AQ@mail.gmail.com>
	<31795.1578773977@sss.pgh.pa.us>
	<20200112014107.GC32763@fetter.org>
	<5450.1578797036@sss.pgh.pa.us>
	<28764.1578799965@sss.pgh.pa.us>
	<20200113231804.4zqjzggv3te2eo63@alap3.anarazel.de>
	<20200114224520.gh4qktr5kuhu5pyi@alap3.anarazel.de>
	<6648.1589819885@sss.pgh.pa.us>
	<CAEudQAphOafu0C4PRquVwXindHwrsnDGKpDPr4r57bJe-5zpUw@mail.gmail.com>

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





view thread (29+ messages)  latest in thread

Message-ID: <2879.1589825333@sss.pgh.pa.us>
Permalink:  ../2879.1589825333@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2879.1589825333@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ranier.vf@gmail.com, andres@anarazel.de, david@fetter.org, jeff.janes@gmail.com
  Subject: Re: Why is pq_begintypsend so slow?
  In-Reply-To: <2879.1589825333@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox