pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Remove some inappropriate #includes.
Date: Fri, 16 Feb 2018 17:14:14 +0000
Message-ID: <E1emjaQ-0003pK-Bj@gemulon.postgresql.org> (raw)

Remove some inappropriate #includes.

Other header files should never #include postgres.h (nor postgres_fe.h,
nor c.h), per project policy.  Also, there's no need for any backend .c
file to explicitly include elog.h or palloc.h, because postgres.h pulls
those in already.

Extracted from a larger patch by Kyotaro Horiguchi.  The rest of the
removals he suggests require more study, but these are no-brainers.

Discussion: https://postgr.es/m/20180215.200447.209320006.horiguchi.kyotaro@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/49bff412edd9eb226e146f6e4db7b5a8e843bd1f

Modified Files
--------------
src/backend/lib/knapsack.c           | 1 -
src/backend/replication/basebackup.c | 1 -
src/backend/utils/misc/pg_config.c   | 1 -
src/backend/utils/misc/rls.c         | 1 -
src/include/lib/knapsack.h           | 1 -
src/pl/plpython/plpy_spi.h           | 1 -
src/pl/plpython/plpy_util.c          | 1 -
7 files changed, 7 deletions(-)



Message-ID: <E1emjaQ-0003pK-Bj@gemulon.postgresql.org>
Permalink:  ../E1emjaQ-0003pK-Bj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1emjaQ-0003pK-Bj@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove some inappropriate #includes.
  In-Reply-To: <E1emjaQ-0003pK-Bj@gemulon.postgresql.org>
  References: <E1emjaQ-0003pK-Bj@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