git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1eda3ce) | patch
Add test module for SLRUs
2022年11月16日 00:52:21 +0000 (09:52 +0900)
2022年11月16日 00:52:21 +0000 (09:52 +0900)
commit 006b69fd912b8fa0e9d80df3f61829a5c976c3d3
Add test module for SLRUs

This commit introduces a basic facility to test SLRUs, in terms of
initialization, page reads, writes, flushes, truncation and deletions,
using SQL wrappers around the APIs of slru.c. This should be easily
extensible at will, and it can be used as a starting point for someone
willing to implement an external module that makes use of SLRUs (LWLock
tranche registering and SLRU initialization particularly).

As this requires a loaded library, the tests use a custom configuration
file and are disabled under installcheck.

Author: Aleksander Alekseev, Michael Paquier
Reviewed-by: Pavel Borisov, Daniel Gustafsson, Noah Misch, Maxim Orlov
Discussion: https://postgr.es/m/CAJ7c6TOFoWcHOW4BVe3BG_uikCrO9B91ayx9d6rh5JZr_tPESg@mail.gmail.com
src/test/modules/Makefile diff | blob | blame | history
src/test/modules/meson.build diff | blob | blame | history
src/test/modules/test_slru/.gitignore [new file with mode: 0644] blob
src/test/modules/test_slru/Makefile [new file with mode: 0644] blob
src/test/modules/test_slru/expected/test_slru.out [new file with mode: 0644] blob
src/test/modules/test_slru/meson.build [new file with mode: 0644] blob
src/test/modules/test_slru/sql/test_slru.sql [new file with mode: 0644] blob
src/test/modules/test_slru/test_slru--1.0.sql [new file with mode: 0644] blob
src/test/modules/test_slru/test_slru.c [new file with mode: 0644] blob
src/test/modules/test_slru/test_slru.conf [new file with mode: 0644] blob
src/test/modules/test_slru/test_slru.control [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /