pgsql: Add test for temporary file removal and WITH HOLD cursor

Started by Michael Paquier7 months ago1 messagescomitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

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: /messages/by-id/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(-)