postgresql/src/backend/storage
Thomas Munro 13453eedd3 Add pg_buffercache_evict() function for testing.
When testing buffer pool logic, it is useful to be able to evict
arbitrary blocks.  This function can be used in SQL queries over the
pg_buffercache view to set up a wide range of buffer pool states.  Of
course, buffer mappings might change concurrently so you might evict a
block other than the one you had in mind, and another session might
bring it back in at any time.  That's OK for the intended purpose of
setting up developer testing scenarios, and more complicated interlocking
schemes to give stronger guararantees about that would likely be less
flexible for actual testing work anyway.  Superuser-only.

Author: Palak Chaturvedi <chaturvedipalak1911@gmail.com>
Author: Thomas Munro <thomas.munro@gmail.com> (docs, small tweaks)
Reviewed-by: Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Cary Huang <cary.huang@highgo.ca>
Reviewed-by: Cédric Villemain <cedric.villemain+pgsql@abcsql.com>
Reviewed-by: Jim Nasby <jim.nasby@gmail.com>
Reviewed-by: Maxim Orlov <orlovmg@gmail.com>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/CALfch19pW48ZwWzUoRSpsaV9hqt0UPyaBPC4bOZ4W+c7FF566A@mail.gmail.com
2024-04-08 16:23:40 +12:00
..
aio Fix if/while thinko in read_stream.c edge case. 2024-04-07 14:51:33 +12:00
buffer Add pg_buffercache_evict() function for testing. 2024-04-08 16:23:40 +12:00
file Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
freespace Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
ipc Combine freezing and pruning steps in VACUUM 2024-04-03 19:32:28 +03:00
large_object Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
lmgr Fix zeroing of pg_serial page without SLRU bank lock 2024-04-03 17:49:44 +02:00
page Update copyright for 2024 2024-01-03 20:49:05 -05:00
smgr Don't destroy SMgrRelations at relcache invalidation 2024-03-11 09:08:02 +02:00
sync Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
Makefile Provide API for streaming relation data. 2024-04-03 00:49:46 +13:00
meson.build Provide API for streaming relation data. 2024-04-03 00:49:46 +13:00