Read WAL directly from WAL buffers.
Jeff Davis <jdavis@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +120 −0 |
| src/backend/access/transam/xlogreader.c | modified | +0 −3 |
| src/backend/replication/walsender.c | modified | +11 −1 |
| src/include/access/xlog.h | modified | +3 −0 |
Discussion
- Improve WALRead() to suck data directly from WAL buffers when possible 95 messages · 2022-12-09 → 2024-04-24