pgsql: tests: Expand temp table tests to some pin related matters

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: tests: Expand temp table tests to some pin related matters
Date: 2025-03-17 18:16:22
Message-ID: E1tuF0g-002xzR-1x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

tests: Expand temp table tests to some pin related matters

Added tests:
- recovery from running out of unpinned local buffers
- that we don't run out of unpinned buffers due to read stream (only recently
fixed, in 92fc6856cb4)
- temp tables can't be dropped while in use by cursors

Discussion: weskknhckugbdm2yt7sa2uq53xlsax67gcdkac34sanb7qpd3p(at)hcc2wadao5wy
Discussion: https://postgr.es/m/ge6nsuddurhpmll3xj22vucvqwp4agqz6ndtcf2mhyeydzarst@l75dman5x53p

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1a22a8a0f1319e3d80cab0962374f235359b59ff

Modified Files
--------------
src/test/regress/expected/temp.out | 156 +++++++++++++++++++++++++++++++++++++
src/test/regress/parallel_schedule | 2 +-
src/test/regress/sql/temp.sql | 107 +++++++++++++++++++++++++
3 files changed, 264 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2025-03-17 18:18:46 pgsql: pg_upgrade: Remove some dead code.
Previous Message Robert Haas 2025-03-17 18:09:30 pgsql: pg_combinebackup: Add -k, --link option.