Re: Movement of restart_lsn position movement of logical replication slots is very slow

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Jammie <shailesh(dot)jamloki(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Movement of restart_lsn position movement of logical replication slots is very slow
Date: 2021-01-13 05:39:02
Message-ID: CAA4eK1JFNhU5k3bj+C00bTKri6G-oX-zWOmSnw-kSFGGDCrg0w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 12, 2021 at 9:15 AM Jammie <shailesh(dot)jamloki(at)gmail(dot)com> wrote:
>
> Hi Amit,
> Thanks for the response .
> Can you please let me know what pg_current_wal_lsn returns ?
>
> is this position the LSN of the next log record to be created, or is it the LSN of the last log record already created and inserted in the log?
>

This is the position up to which we have already written the WAL to
the kernel but not yet flushed to disk.

--
With Regards,
Amit Kapila.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2021-01-13 05:47:58 Re: Single transaction in the tablesync worker?
Previous Message Bharath Rupireddy 2021-01-13 05:37:56 Re: Logical Replication - behavior of ALTER PUBLICATION .. DROP TABLE and ALTER SUBSCRIPTION .. REFRESH PUBLICATION