Re: [PATCH] Fix leaked hash scans in pg_listening_channels()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joel Jacobson" <joel(at)compiler(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Fix leaked hash scans in pg_listening_channels()
Date: 2026-10-25 18:42:52
Message-ID: 345742.1792953772@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Tom Lane 2026-10-25 18:30:33 Re: [PATCH] Fix leaked hash scans in pg_listening_channels()