pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add test for temporary file removal and WITH HOLD cursor
Date: Sun, 16 Nov 2025 23:11:24 +0000
Message-ID: <E1vKlu0-006xKp-0e@gemulon.postgresql.org> (raw)

Add test for temporary file removal and WITH HOLD cursor

This new test, added in 009_log_temp_files, checks that the temporary
files created by a WITH HOLD cursor are dropped at the end of the
transaction where the transaction has been created.

The portal's executor is shutdown in PersistHoldablePortal(), after for
example some forced detoast, so as the cursor data can be accessed
without requiring a snapshot.

Author: Mircea Cadariu <cadariu.mircea@gmail.com>
Discussion: https://postgr.es/m/0a666d28-9080-4239-90d6-f6345bb43468@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e7cde9dad285acb579b189e82a57fa7b98f23a11

Modified Files
--------------
src/test/modules/test_misc/t/009_log_temp_files.pl | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)



Message-ID: <E1vKlu0-006xKp-0e@gemulon.postgresql.org>
Permalink:  ../E1vKlu0-006xKp-0e@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vKlu0-006xKp-0e@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add test for temporary file removal and WITH HOLD cursor
  In-Reply-To: <E1vKlu0-006xKp-0e@gemulon.postgresql.org>

* 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