Re: Fsync (flush) all inserted WAL records
Aleksander Alekseev <aleksander@timescale.com>
From: Aleksander Alekseev <aleksander@timescale.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Vitaly Davydov <v.davydov@postgrespro.ru>
Date: 2024-08-07T09:19:28Z
Lists: pgsql-hackers
Hi, > > Could you please advice which way to go? > > Does pg_current_wal_flush_lsn() [1] return what you need? > > [1]: https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-RECOVERY-CONTROL If not, take a look at its implementation and functions around, GetInsertRecPtr() and others. I believe you will find all you need for the task. -- Best regards, Aleksander Alekseev