pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Andy Fan <zhihuifan1213@163.com>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Make printtup a bit faster
Date: Mon, 04 May 2026 09:09:44 -0400
Message-ID: <185759.1777900184@sss.pgh.pa.us> (raw)
In-Reply-To: <fgiz2skezdgomtipzrbafokaylkr346z75gfnmbhpk3gkmmr3j@q5526zdy4c27>
References: <87wmjzfz0h.fsf@163.com>
	<CAApHDvrBNA-QRsbn-SJyRAsywjHCNenfcbi14c3O3c7=OimQ8Q@mail.gmail.com>
	<87bk1aj2go.fsf@163.com>
	<CAApHDvqHthJb6baDhgTE5T4RLW6nEX=r239EYmpjfg=Wq5CqQA@mail.gmail.com>
	<877bpk7dyg.fsf@163.com>
	<117986.1777869518@sss.pgh.pa.us>
	<fgiz2skezdgomtipzrbafokaylkr346z75gfnmbhpk3gkmmr3j@q5526zdy4c27>

Andres Freund <andres@anarazel.de> writes:
> FWIW, I've experimented fixing this overhead before, and what I did was to
> pass an optional context via the fcinfo, and output / send functions could use
> memory allocated via that optional context object, rather than doing it
> allocating in CurrentMemoryContext.  For the send functions that looks
> reasonably clean, given that it already deals with a stringinfo. For out
> functions it's a bit uglier, but still somewhat acceptable.

Hmm, yeah, that could be a route to building a new optional API
without causing compatibility problems everywhere.

			regards, tom lane





view thread (24+ messages)  latest in thread

Message-ID: <185759.1777900184@sss.pgh.pa.us>
Permalink:  ../185759.1777900184@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/185759.1777900184@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, andres@anarazel.de, zhihuifan1213@163.com, dgrowleyml@gmail.com
  Subject: Re: Make printtup a bit faster
  In-Reply-To: <185759.1777900184@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