Skip to content

recovery-target-time do not support fractional second #109

@gsmolk

Description

@gsmolk
Contributor

WAL records have timestamps with microsecond precision(6), so --recovery-target-time parameter must support them:

rmgr: Transaction len (rec/tot):     66/    66, tx:        554, lsn: 0/01840C40, prev 0/01840BA0, desc: COMMIT 2019-08-06 17:21:14.670041 MSK; inval msgs: snapshot 2396

I think we can just use https://github.com/thatguystone/approxidate
Our license is compatible with GPL

Activity

added a commit that references this issue on Aug 6, 2019
modified the milestones: 2.2.0, 2.3.0 on Sep 23, 2019
modified the milestones: 2.3.0, 2.4.0 on Feb 19, 2020
modified the milestones: 2.4.0, 2.5.0 on May 20, 2020
modified the milestones: 2.5.0, 2.6.0 on Jul 7, 2020
sgrinko

sgrinko commented on Sep 1, 2021

@sgrinko

Параметр восстановления: --recovery-target-time
на сейчас: pg_probackup-13 2.4.15
поддерживает указание с точностью только до секунд. А вот параметр самого postgres:
recovery_target_time поддерживает до микросекунд.
Я понимаю, что наверное не просто это реализовать, но очень хотелось бы иметь возможность передавать время восстановления с точностью до микросекунд.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sgrinko@gsmolk

        Issue actions

          recovery-target-time do not support fractional second · Issue #109 · postgrespro/pg_probackup