[HACKERS] Improve history file reasons when doing promotion - Mailing list pgsql-hackers

From Michael Paquier
Subject [HACKERS] Improve history file reasons when doing promotion
Date
Msg-id CAB7nPqTLOArrqDZ7uFJRMO4wFKV-kY8QG8u7az2VhKK5uRqwsw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi all,

When triggering a promotion, the history file generated for the
timeline bump provides a reason behind the timeline bump not really
helpful:
$ cat 00000002.history
1       0/3000858       no recovery target specified
I was wondering if we could improve that a bit for a promotion. One
thing popping up immediately to my mind would be to check for
IsPromoteTriggered() and replace this reason by "standby promotion".
Any thoughts perhaps?
-- 
Michael



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Make pg_regress print a connstring with sockdir
Next
From: Andres Freund
Date:
Subject: Re: [HACKERS] increasing the default WAL segment size