pgsql: Reduce xlog.h inclusion footprint

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reduce xlog.h inclusion footprint
Date: 2022-10-12 07:57:30
Message-ID: E1oiWcL-0021Lm-Gw@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reduce xlog.h inclusion footprint

This file needs xlogreader.h only for the XLogReaderState typedef; but
we can dodge that by forward-declaring it. Many files use xlog.h for
reasons other than reading WAL, and it's not good to force all those
files to include xlogreader.h, so take it out.

Surprisingly, there is no fallout in core code from making this change.
Perhaps external code will have to start including xlogreader.h.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9c0de04242a160aa1d4afeefab7d2e40efd8255d

Modified Files
--------------
src/include/access/xlog.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-10-12 14:52:45 pgsql: Doc: improve recommended systemd unit file.
Previous Message Alvaro Herrera 2022-10-12 07:44:26 pgsql: Reduce basebackup_sink.h inclusion footprint