pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Do not rely on pgstat.h to indirectly include storage/ headers.
Date: Sat, 03 Apr 2021 03:06:52 +0000
Message-ID: <E1lSWce-0007JA-Me@gemulon.postgresql.org> (raw)

Do not rely on pgstat.h to indirectly include storage/ headers.

An upcoming patch might remove the (now indirect) proc.h
include (which in turn includes other headers), and it's cleaner for
the modified files to include their dependencies directly anyway...

Discussion: https://postgr.es/m/20210402194458.2vu324hkk2djq6ce@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d9c5d0ce2dcac05850401cf266a9df10a68de49

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 2 ++
src/backend/postmaster/pgarch.c                 | 2 ++
src/backend/postmaster/pgstat.c                 | 1 +
src/backend/replication/walreceiver.c           | 1 +
src/backend/storage/lmgr/lmgr.c                 | 1 +
src/backend/utils/adt/misc.c                    | 1 +
6 files changed, 8 insertions(+)



Message-ID: <E1lSWce-0007JA-Me@gemulon.postgresql.org>
Permalink:  ../E1lSWce-0007JA-Me@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lSWce-0007JA-Me@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Do not rely on pgstat.h to indirectly include storage/ headers.
  In-Reply-To: <E1lSWce-0007JA-Me@gemulon.postgresql.org>
  References: <E1lSWce-0007JA-Me@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox