mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Read WAL directly from WAL buffers.
If available, read directly from WAL buffers, avoiding the need to go through the filesystem. Only for physical replication for now, but can be expanded to other callers. In preparation for replicating unflushed WAL data. Author: Bharath Rupireddy Discussion: https://postgr.es/m/CALj2ACXKKK%3DwbiG5_t6dGao5GoecMwRkhr7GjVBM_jg54%2BNa%3DQ%40mail.gmail.com Reviewed-by: Andres Freund, Alvaro Herrera, Nathan Bossart, Dilip Kumar, Nitin Jadhav, Melih Mutlu, Kyotaro Horiguchi
This commit is contained in:
@ -252,6 +252,9 @@ extern XLogRecPtr GetLastImportantRecPtr(void);
|
||||
|
||||
extern void SetWalWriterSleeping(bool sleeping);
|
||||
|
||||
extern Size WALReadFromBuffers(char *dstbuf, XLogRecPtr startptr, Size count,
|
||||
TimeLineID tli);
|
||||
|
||||
/*
|
||||
* Routines used by xlogrecovery.c to call back into xlog.c during recovery.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user