Re: Strange decreasing value of pg_last_wal_receive_lsn()

From: Sergei Kornilov <sk(at)zsrv(dot)org>
To: godjan • <g0dj4n(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange decreasing value of pg_last_wal_receive_lsn()
Date: 2020-05-08 09:50:32
Message-ID: 1474241588931298@mail.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

Yes, this is expected. Walreceiver always start streaming from beginning of the wal segment.
./src/backend/replication/walreceiverfuncs.c in RequestXLogStreaming:

* We always start at the beginning of the segment. That prevents a broken
* segment (i.e., with no records in the first half of a segment) from
* being created by XLOG streaming, which might cause trouble later on if
* the segment is e.g archived.

regards, Sergei

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message godjan • 2020-05-08 10:02:26 Re: Strange decreasing value of pg_last_wal_receive_lsn()
Previous Message Peter Eisentraut 2020-05-08 09:47:22 Re: Dumping/restoring fails on inherited generated column