Improve history file reasons when doing promotion

Started by Michael Paquierover 8 years ago1 messageshackers
Jump to latest
#1Michael Paquier
michael@paquier.xyz

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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers