Re: Fsync (flush) all inserted WAL records

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: Vitaly Davydov <v(dot)davydov(at)postgrespro(dot)ru>
Subject: Re: Fsync (flush) all inserted WAL records
Date: 2024-08-07 09:19:28
Message-ID: CAJ7c6TPYZxd9vdziLfFVfO23rbsgRSAQPwyAy9eVUtaNGL8RLg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michail Nikolaev 2024-08-07 09:30:44 Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY
Previous Message Aleksander Alekseev 2024-08-07 09:15:50 Re: Fsync (flush) all inserted WAL records