Skip site navigation (1) Skip section navigation (2)

pgsql: Split heapam_xlog.h from heapam.h

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Split heapam_xlog.h from heapam.h
Date: 2012-08-28 23:09:17
Message-ID: E1T6UuL-0001Nf-Lj@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Split heapam_xlog.h from heapam.h

The heapam XLog functions are used by other modules, not all of which
are interested in the rest of the heapam API.  With this, we let them
get just the XLog stuff in which they are interested and not pollute
them with unrelated includes.

Also, since heapam.h no longer requires xlog.h, many files that do
include heapam.h no longer get xlog.h automatically, including a few
headers.  This is useful because heapam.h is getting pulled in by
execnodes.h, which is in turn included by a lot of files.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/21c09e99dc252269360bd146afee9481fa80abbc

Modified Files
--------------
src/backend/access/gin/gininsert.c      |    1 +
src/backend/access/heap/heapam.c        |    1 +
src/backend/access/heap/pruneheap.c     |    1 +
src/backend/access/heap/rewriteheap.c   |    1 +
src/backend/access/heap/visibilitymap.c |    2 +-
src/backend/access/index/genam.c        |    1 +
src/backend/access/nbtree/nbtree.c      |    1 +
src/backend/access/nbtree/nbtsort.c     |    1 +
src/backend/access/nbtree/nbtxlog.c     |    1 +
src/backend/access/spgist/spginsert.c   |    1 +
src/backend/access/transam/rmgr.c       |    2 +-
src/backend/commands/tablecmds.c        |    2 +-
src/backend/commands/vacuumlazy.c       |    1 +
src/backend/executor/nodeSubplan.c      |    1 +
src/backend/foreign/foreign.c           |    1 +
src/backend/nodes/print.c               |    1 +
src/backend/optimizer/prep/prepunion.c  |    1 +
src/backend/optimizer/util/plancat.c    |    1 +
src/backend/parser/parse_func.c         |    1 +
src/backend/utils/adt/domains.c         |    1 +
src/backend/utils/adt/regproc.c         |    1 +
src/include/access/heapam.h             |   22 ---
src/include/access/heapam_xlog.h        |  264 +++++++++++++++++++++++++++++++
src/include/access/htup.h               |  219 -------------------------
src/include/commands/explain.h          |    1 +
src/include/commands/prepare.h          |    1 +
26 files changed, 287 insertions(+), 244 deletions(-)

pgsql-committers by date

Next:From: Peter EisentrautDate: 2012-08-29 03:02:35
Subject: pgsql: Add strerror() string to chdir() error message
Previous:From: Alvaro HerreraDate: 2012-08-28 22:06:30
Subject: pgsql: Split resowner.h

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group