pgsql: Improve error message for checksum state in pg_upgrade

Started by Daniel Gustafsson2 months ago1 messagescommitters
Jump to latest
#1Daniel Gustafsson
dgustafsson@postgresql.org

Improve error message for checksum state in pg_upgrade

When attempting to upgrade a cluster which is an inprogress state, the
same error message was used regardless of which state it was. Fix by
using different error messages for the different inprogress states.

Found by Noah using AI assisted review with Claude. Backpatch to v19
where the online checksums feature was introduced.

Reported-by: Noah Misch <noah@leadboat.com>
Discussion: /messages/by-id/E15AC050-C4B5-488D-BB2D-3C7AC9F89EA8@yesql.se
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9a45131b7cf3b573d1b15a093a3cc80869814cbe

Modified Files
--------------
src/bin/pg_upgrade/controldata.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)