Improve history file reasons when doing promotion

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Improve history file reasons when doing promotion
Date: 2017-08-29 22:06:52
Message-ID: CAB7nPqTLOArrqDZ7uFJRMO4wFKV-kY8QG8u7az2VhKK5uRqwsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-08-29 23:13:22 Re: increasing the default WAL segment size
Previous Message Robert Haas 2017-08-29 21:44:55 Re: Make pg_regress print a connstring with sockdir