pgsql: Add test for temporary file removal and WITH HOLD cursor - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add test for temporary file removal and WITH HOLD cursor
Date
Msg-id E1vKlu0-006xKp-0e@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Dean Rasheed
Date:
Subject: pgsql: Fix Assert failure in EXPLAIN ANALYZE MERGE with a concurrent up
Next
From: David Rowley
Date:
Subject: pgsql: Adjust MemSet macro to use size_t rather than long