pgsql: Read WAL directly from WAL buffers.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Read WAL directly from WAL buffers.
Date: 2024-02-12 19:17:32
Message-ID: E1rZbo4-005tOj-G3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91f2cae7a4e664e9c0472b364c7db29d755ab151

Modified Files
--------------
src/backend/access/transam/xlog.c | 120 ++++++++++++++++++++++++++++++++
src/backend/access/transam/xlogreader.c | 3 -
src/backend/replication/walsender.c | 12 +++-
src/include/access/xlog.h | 3 +
4 files changed, 134 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2024-02-13 04:26:39 pgsql: Doc: Improve upgrade for streaming replication section.
Previous Message Heikki Linnakangas 2024-02-12 09:58:18 pgsql: Remove "#ifdef WIN32" guards from src/port/win32*.c