Re: Allow reading LSN written by walreciever, but not flushed yet
Alexander Kukushkin <cyberdemn@gmail.com>
From: Alexander Kukushkin <cyberdemn@gmail.com>
To: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: Amit Kapila <amit.kapila16@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-05-14T07:02:47Z
Lists: pgsql-hackers
On Mon, 12 May 2025 at 17:48, Andrey Borodin <x4mmm@yandex-team.ru> wrote: > Done so. Thanks! TBH, the current function name pg_last_wal_receive_lsn() is confusing, and introducing a new one pg_last_wal_receive_unflushed_lsn() doesn't make it better :( What about actually adding TWO new functions, pg_last_wal_write_lsn() and pg_last_wal_flush_lsn()? These names are more aligned with column names in pg_stat_replication view and speak for themselves. And, we can keep pg_last_wal_receive_lsn() as an alias of pg_last_wal_flush_lsn() for backward compatibility. -- Regards, -- Alexander Kukushkin