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: Don't include genam.h from execnodes.h and relscan.h anymore.
Date: Tue, 15 Jan 2019 01:16:11 +0000
Message-ID: <E1gjDKt-00029P-Ap@gemulon.postgresql.org> (raw)

Don't include genam.h from execnodes.h and relscan.h anymore.

This is the genam.h equivalent of 4c850ecec649c (which removed
heapam.h from a lot of other headers).  There's still a few header
includes of genam.h, but not from central headers anymore.

As a few headers are not indirectly included anymore, execnodes.h and
relscan.h need a few additional includes. Some of the depended on
types were replacable by using the underlying structs, but e.g. for
Snapshot in execnodes.h that'd have gotten more invasive than
reasonable in this commit.

Like the aforementioned commit 4c850ecec649c, this requires adding new
genam.h includes to a number of backend files, which likely is also
required in a few external projects.

Author: Andres Freund
Discussion: https://postgr.es/m/20190114000701.y4ttcb74jpskkcfb@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0944ec54de389b4b8a471ca1f40f1b9d81de1f30

Modified Files
--------------
src/backend/access/heap/heapam.c           |  1 +
src/backend/access/index/genam.c           |  1 +
src/backend/bootstrap/bootstrap.c          |  1 +
src/backend/catalog/dependency.c           |  1 +
src/backend/catalog/heap.c                 |  1 +
src/backend/catalog/indexing.c             |  1 +
src/backend/catalog/objectaddress.c        |  1 +
src/backend/commands/analyze.c             |  1 +
src/backend/commands/constraint.c          |  1 +
src/backend/commands/extension.c           |  1 +
src/backend/commands/matview.c             |  1 +
src/backend/commands/typecmds.c            |  1 +
src/backend/executor/execCurrent.c         |  1 +
src/backend/executor/execIndexing.c        |  1 +
src/backend/executor/execReplication.c     |  1 +
src/backend/executor/nodeBitmapIndexscan.c |  1 +
src/backend/executor/nodeIndexonlyscan.c   |  2 ++
src/backend/optimizer/plan/planner.c       |  1 +
src/backend/utils/init/postinit.c          |  1 +
src/include/access/relscan.h               | 25 +++++++++++++------------
src/include/executor/nodeIndexscan.h       |  1 +
src/include/nodes/execnodes.h              | 22 +++++++++++-----------
22 files changed, 45 insertions(+), 23 deletions(-)



Message-ID: <E1gjDKt-00029P-Ap@gemulon.postgresql.org>
Permalink:  ../E1gjDKt-00029P-Ap@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gjDKt-00029P-Ap@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: Don't include genam.h from execnodes.h and relscan.h anymore.
  In-Reply-To: <E1gjDKt-00029P-Ap@gemulon.postgresql.org>
  References: <E1gjDKt-00029P-Ap@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