pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add a test harness for the LWLock tranche code.
Date: Thu, 18 Sep 2025 20:23:59 +0000
Message-ID: <E1uzLAd-001Nxh-1P@gemulon.postgresql.org> (raw)

Add a test harness for the LWLock tranche code.

This code is heavily used and already has decent test coverage, but
it lacks a dedicated test suite.  This commit changes that.

Author: Sami Imseih <samimseih@gmail.com>
Co-authored-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0tQ%2BEYSTOd2hQ8RXdsNfGBLAtOe-YmnsTE6ZVg0E-4qew%40mail.gmail.com
Discussion: https://postgr.es/m/CAA5RZ0vpr0P2rbA%3D_K0_SCHM7bmfVX4wEO9FAyopN1eWCYORhA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16607718c0107e971bf155c6357c193cc3f8f66a

Modified Files
--------------
src/test/modules/Makefile                          |   1 +
src/test/modules/meson.build                       |   1 +
src/test/modules/test_lwlock_tranches/.gitignore   |   4 +
src/test/modules/test_lwlock_tranches/Makefile     |  25 +++++
.../expected/test_lwlock_tranches.out              |  25 +++++
src/test/modules/test_lwlock_tranches/meson.build  |  35 ++++++
.../sql/test_lwlock_tranches.sql                   |   8 ++
.../test_lwlock_tranches--1.0.sql                  |  16 +++
.../test_lwlock_tranches/test_lwlock_tranches.c    | 123 +++++++++++++++++++++
.../test_lwlock_tranches/test_lwlock_tranches.conf |   1 +
.../test_lwlock_tranches.control                   |   4 +
11 files changed, 243 insertions(+)



Message-ID: <E1uzLAd-001Nxh-1P@gemulon.postgresql.org>
Permalink:  ../E1uzLAd-001Nxh-1P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uzLAd-001Nxh-1P@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add a test harness for the LWLock tranche code.
  In-Reply-To: <E1uzLAd-001Nxh-1P@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox