Re: Fsync (flush) all inserted WAL records - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: Fsync (flush) all inserted WAL records
Date
Msg-id CAJ7c6TPYZxd9vdziLfFVfO23rbsgRSAQPwyAy9eVUtaNGL8RLg@mail.gmail.com
Whole thread Raw
In response to Re: Fsync (flush) all inserted WAL records  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: Fsync (flush) all inserted WAL records
List 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



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: Fsync (flush) all inserted WAL records
Next
From: Michail Nikolaev
Date:
Subject: Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY