pgsql: Log the correct ending timestamp in recovery_target_xid mode.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Log the correct ending timestamp in recovery_target_xid mode.
Дата
Msg-id E1pIYdu-004UAB-6W@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log the correct ending timestamp in recovery_target_xid mode.

When ending recovery based on recovery_target_xid matching with
recovery_target_inclusive = off, we printed an incorrect timestamp
(always 2000-01-01) in the "recovery stopping before ... transaction"
log message.  This is a consequence of sloppy refactoring in
c945af80c: the code to fetch recordXtime out of the commit/abort
record used to be executed unconditionally, but it was changed
to get called only in the RECOVERY_TARGET_TIME case.  We need only
flip the order of operations to restore the intended behavior.

Per report from Torsten Förtsch.  Back-patch to all supported
branches.

Discussion: https://postgr.es/m/CAKkG4_kUevPqbmyOfLajx7opAQk6Cvwkvx0HRcFjSPfRPTXanA@mail.gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/87591db1918a5242152e55f3a8362852efa392fc

Modified Files
--------------
src/backend/access/transam/xlog.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: Remove some dead code in selfuncs.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Remove some dead code in selfuncs.c