pgsql: Improve database detection logic in datachecksumsworker

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve database detection logic in datachecksumsworker
Date: 2026-04-30 11:46:34
Message-ID: E1wIPqk-003SOi-14@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve database detection logic in datachecksumsworker

The worker need to know whether a database which failed checksum
processing still exists, or has been dropped. This improves the
detection logic by checking for being partially dropped.

Author: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: Tomas Vondra <tomas(at)vondra(dot)me>
Reviewed-by: SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>
Reviewed-by: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Discussion: https://postgr.es/m/9197F930-DDEB-4CAC-82A2-16FEC715CCE8@yesql.se

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/datachecksum_state.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-04-30 11:46:35 pgsql: Fix data_checksum GUC show_hook
Previous Message Amit Kapila 2026-04-30 11:11:34 pgsql: Fix double table_close of sequence_rel in copy_sequences().