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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Mircea Cadariu <cadariu(dot)mircea(at)gmail(dot)com>
Cc: Sami Imseih <samimseih(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, 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-14 22:13:42
Message-ID: aReplkCd0YIkS5AH@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Fri, Nov 14, 2025 at 03:10:32PM +0000, Mircea Cadariu wrote:
> What's interesting about the holdable cursors scenario is that as far as I
> can tell the temp files are cleaned up during PersistHoldablePortal instead
> of PortalDrop.

As part of the ExecutorEnd() done in this case. Right, it looks like
a good thing to track this behavior as well in the long-run. I'll
double-check that later.
--
Michael

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2025-11-14 22:55:37 pgsql: Add test for postgresql.conf.sample line syntax
Previous Message Nathan Bossart 2025-11-14 19:46:06 pgsql: Comment out autovacuum_worker_slots in postgresql.conf.sample.

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2025-11-14 22:27:23 Re: Confused static assertion implementation
Previous Message Nathan Bossart 2025-11-14 21:38:01 Re: postgresql.conf.sample tab width