Re: pgsql: Drop unnamed portal immediately after execution to completion

From: Mircea Cadariu <cadariu(dot)mircea(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Frédéric Yhuel <frederic(dot)yhuel(at)dalibo(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Drop unnamed portal immediately after execution to completion
Date: 2025-11-12 11:14:26
Message-ID: 00d71a54-2118-4b18-87e8-33f4a99dc624@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Hi,

I understand the point that’s been raised. Would it be an option to
indeed revert the portal drop in postgres.c, but then append the right
query in the "temporary file: ..." log line instead? This would work at
least for me.

Attached is a POC patch (contains a layering violation, hoping it could
be avoided somehow).

Kind regards,

Mircea Cadariu

Attachment Content-Type Size
v1-0001-show-temp-file-creating-query.patch text/plain 7.1 KB

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-11-12 11:25:32 pgsql: Fix comments of output routines for pg_ndistinct and pg_dependen
Previous Message Heikki Linnakangas 2025-11-12 11:13:18 pgsql: Fix pg_upgrade around multixid and mxoff wraparound

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2025-11-12 11:25:43 Re: Extended Statistics set/restore/clear functions.
Previous Message Heikki Linnakangas 2025-11-12 11:14:00 Re: mxid and mxoff wraparound issues in pg_upgrade