From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Jacobson <joel@compiler.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [PATCH] Fix leaked hash scans in pg_listening_channels()
Date: Sun, 25 Oct 2026 14:42:52 -0400
Message-ID: <345742.1792953772@sss.pgh.pa.us> (raw)
In-Reply-To: <344904.1792953033@sss.pgh.pa.us>
References: <069fc976-bee1-4f0f-b22b-86ef7ed4f9ff@app.fastmail.com>
<344904.1792953033@sss.pgh.pa.us>
I wrote:
> I am wondering why you used MAT_SRF_USE_EXPECTED_DESC?
Ah, never mind that: I find that if you don't, you get
regression=# SELECT pg_listening_channels() ;
ERROR: return type must be a row type
regression=# \errverbose
ERROR: XX000: return type must be a row type
LOCATION: InitMaterializedSRF, funcapi.c:109
I question whether this aspect of InitMaterializedSRF is
well-designed, but I suppose now is no time to rethink that.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, joel@compiler.org
Subject: Re: [PATCH] Fix leaked hash scans in pg_listening_channels()
In-Reply-To: <345742.1792953772@sss.pgh.pa.us>
References: <069fc976-bee1-4f0f-b22b-86ef7ed4f9ff@app.fastmail.com> <344904.1792953033@sss.pgh.pa.us> <345742.1792953772@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