Re: Fsync (flush) all inserted WAL records
От | Aleksander Alekseev |
---|---|
Тема | Re: Fsync (flush) all inserted WAL records |
Дата | |
Msg-id | CAJ7c6TMi6GoLX0S4WUXfTg0JfsqRtw9VPa52Asg2mDFaNyRDEQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Fsync (flush) all inserted WAL records ("Vitaly Davydov" <v.davydov@postgrespro.ru>) |
Список | pgsql-hackers |
Hi, > I use asynchronous commit (without XLogFlush/fsync at commit). At some moment I would like to XLogFlush (fsync) all alreadyasynchronously committed transactions (inserted but not flushed/fsynced yet WAL records). Assume, that there is noany active transactions at this moment, no any potential race conditions. My problem is to find a proper LSN which I canuse as a parameter for XLogFlush. How is it different from `CHECKPOINT;` ? > Well, I would like to use such function in C language code, in some solution, not as a function to be used by users. Assuming the function has value, as you claim, I see no reason not to expose it similarly to pg_current_wal_*(). On top of that you will have to test-cover it anyway. The easiest way to do it will be to have an SQL-wrapper. -- Best regards, Aleksander Alekseev
В списке pgsql-hackers по дате отправления: