tests: Expand temp table tests to some pin related matters
authorAndres Freund <andres@anarazel.de>
Mon, 17 Mar 2025 18:12:44 +0000 (14:12 -0400)
committerAndres Freund <andres@anarazel.de>
Mon, 17 Mar 2025 18:12:44 +0000 (14:12 -0400)
commit1a22a8a0f1319e3d80cab0962374f235359b59ff
tree9524f1258d881a3f7288e65c546f3ab522597f62
parent99aeb84703177308c1541e2d11c09fdc59acb724
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@hcc2wadao5wy
Discussion: https://postgr.es/m/ge6nsuddurhpmll3xj22vucvqwp4agqz6ndtcf2mhyeydzarst@l75dman5x53p
src/test/regress/expected/temp.out
src/test/regress/parallel_schedule
src/test/regress/sql/temp.sql