• T
    Replace max_standby_delay with two parameters, max_standby_archive_delay and · e76c1a0f
    Tom Lane 提交于
    max_standby_streaming_delay, and revise the implementation to avoid assuming
    that timestamps found in WAL records can meaningfully be compared to clock
    time on the standby server.  Instead, the delay limits are compared to the
    elapsed time since we last obtained a new WAL segment from archive or since
    we were last "caught up" to WAL data arriving via streaming replication.
    This avoids problems with clock skew between primary and standby, as well
    as other corner cases that the original coding would misbehave in, such
    as the primary server having significant idle time between transactions.
    Per my complaint some time ago and considerable ensuing discussion.
    
    Do some desultory editing on the hot standby documentation, too.
    e76c1a0f
postgresql.conf.sample 17.4 KB