Re: Make printtup a bit faster

Andreas Karlsson <andreas@proxel.se>

From: Andreas Karlsson <andreas@proxel.se>
To: David Rowley <dgrowleyml@gmail.com>, Andy Fan <zhihuifan1213@163.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-08-30T16:20:39Z
Lists: pgsql-hackers
On 8/29/24 1:51 PM, David Rowley wrote:
> I had planned to work on this for PG18, but I'd be happy for some
> assistance if you're willing.

I am interested in working on this, unless Andy Fan wants to do this 
work. :) I believe that optimizing the out, in and send functions would 
be worth the pain. I get Tom's objections but I do not think adding a 
small check would add much overhead compared to the gains we can get.

And given that all of in, out and send could be optimized I do not like 
the idea of duplicating all three in the catalog.

David, have you given any thought on the cleanest way to check for if 
the new API or the old is the be used for these functions? If not I can 
figure out something myself, just wondering if you already had something 
in mind.

Andreas