Remove fmgr.h includes from headers that don't really need it.

Most of the fmgr.h includes were obsoleted by 352a24a1f9. A
few others can be obsoleted using the underlying struct type in an
implementation detail.

Author: Andres Freund
Discussion: https://postgr.es/m/20190803193733.g3l3x3o42uv4qj7l@alap3.anarazel.de
pull/47/head
Andres Freund 6 years ago
parent 6a04d345fd
commit fb3b098fe8
  1. 1
      src/backend/access/common/printsimple.c
  2. 1
      src/backend/nodes/makefuncs.c
  3. 1
      src/backend/replication/logical/logical.c
  4. 2
      src/backend/replication/pgoutput/pgoutput.c
  5. 1
      src/include/access/brin.h
  6. 1
      src/include/access/gist_private.h
  7. 1
      src/include/access/hash.h
  8. 1
      src/include/access/spgist.h
  9. 2
      src/include/commands/async.h
  10. 1
      src/include/executor/executor.h
  11. 1
      src/include/jit/llvmjit_emit.h
  12. 1
      src/include/nodes/execnodes.h
  13. 3
      src/include/nodes/pathnodes.h
  14. 4
      src/include/pgstat.h
  15. 1
      src/include/replication/origin.h
  16. 1
      src/include/replication/slot.h
  17. 1
      src/include/replication/walreceiver.h
  18. 2
      src/include/replication/walsender.h
  19. 1
      src/include/utils/bytea.h
  20. 2
      src/include/utils/formatting.h
  21. 3
      src/include/utils/rel.h
  22. 1
      src/include/utils/snapmgr.h
  23. 1
      src/include/utils/tuplesort.h

@ -20,7 +20,6 @@
#include "access/printsimple.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "libpq/pqformat.h"
#include "utils/builtins.h"

@ -17,7 +17,6 @@
#include "catalog/pg_class.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "nodes/makefuncs.h"
#include "nodes/nodeFuncs.h"
#include "utils/lsyscache.h"

@ -28,6 +28,7 @@
#include "postgres.h"
#include "fmgr.h"
#include "miscadmin.h"
#include "access/xact.h"

@ -14,6 +14,8 @@
#include "catalog/pg_publication.h"
#include "fmgr.h"
#include "replication/logical.h"
#include "replication/logicalproto.h"
#include "replication/origin.h"

@ -10,7 +10,6 @@
#ifndef BRIN_H
#define BRIN_H
#include "fmgr.h"
#include "nodes/execnodes.h"
#include "utils/relcache.h"

@ -17,7 +17,6 @@
#include "access/amapi.h"
#include "access/gist.h"
#include "access/itup.h"
#include "fmgr.h"
#include "lib/pairingheap.h"
#include "storage/bufmgr.h"
#include "storage/buffile.h"

@ -20,7 +20,6 @@
#include "access/amapi.h"
#include "access/itup.h"
#include "access/sdir.h"
#include "fmgr.h"
#include "lib/stringinfo.h"
#include "storage/bufmgr.h"
#include "storage/lockdefs.h"

@ -16,7 +16,6 @@
#include "access/amapi.h"
#include "access/xlogreader.h"
#include "fmgr.h"
#include "lib/stringinfo.h"

@ -15,8 +15,6 @@
#include <signal.h>
#include "fmgr.h"
/*
* The number of SLRU page buffers we use for the notification queue.
*/

@ -15,6 +15,7 @@
#define EXECUTOR_H
#include "executor/execdesc.h"
#include "fmgr.h"
#include "nodes/lockoptions.h"
#include "nodes/parsenodes.h"
#include "utils/memutils.h"

@ -17,7 +17,6 @@
#include <llvm-c/Core.h>
#include "fmgr.h"
#include "jit/llvmjit.h"

@ -16,6 +16,7 @@
#include "access/tupconvert.h"
#include "executor/instrument.h"
#include "fmgr.h"
#include "lib/pairingheap.h"
#include "nodes/params.h"
#include "nodes/plannodes.h"

@ -15,7 +15,6 @@
#define PATHNODES_H
#include "access/sdir.h"
#include "fmgr.h"
#include "lib/stringinfo.h"
#include "nodes/params.h"
#include "nodes/parsenodes.h"
@ -400,7 +399,7 @@ typedef struct PartitionSchemeData
bool *parttypbyval;
/* Cached information about partition comparison functions. */
FmgrInfo *partsupfunc;
struct FmgrInfo *partsupfunc;
} PartitionSchemeData;
typedef struct PartitionSchemeData *PartitionScheme;

@ -12,7 +12,6 @@
#define PGSTAT_H
#include "datatype/timestamp.h"
#include "fmgr.h"
#include "libpq/pqcomm.h"
#include "port/atomics.h"
#include "portability/instr_time.h"
@ -1402,7 +1401,8 @@ extern void pgstat_count_heap_delete(Relation rel);
extern void pgstat_count_truncate(Relation rel);
extern void pgstat_update_heap_dead_tuples(Relation rel, int delta);
extern void pgstat_init_function_usage(FunctionCallInfo fcinfo,
struct FunctionCallInfoBaseData;
extern void pgstat_init_function_usage(struct FunctionCallInfoBaseData *fcinfo,
PgStat_FunctionCallUsage *fcu);
extern void pgstat_end_function_usage(PgStat_FunctionCallUsage *fcu,
bool finalize);

@ -10,7 +10,6 @@
#ifndef PG_ORIGIN_H
#define PG_ORIGIN_H
#include "fmgr.h"
#include "access/xlog.h"
#include "access/xlogdefs.h"
#include "access/xlogreader.h"

@ -9,7 +9,6 @@
#ifndef SLOT_H
#define SLOT_H
#include "fmgr.h"
#include "access/xlog.h"
#include "access/xlogreader.h"
#include "storage/condition_variable.h"

@ -14,7 +14,6 @@
#include "access/xlog.h"
#include "access/xlogdefs.h"
#include "fmgr.h"
#include "getaddrinfo.h" /* for NI_MAXHOST */
#include "replication/logicalproto.h"
#include "replication/walsender.h"

@ -14,8 +14,6 @@
#include <signal.h>
#include "fmgr.h"
/*
* What to do with a snapshot in create replication slot command.
*/

@ -14,7 +14,6 @@
#ifndef BYTEA_H
#define BYTEA_H
#include "fmgr.h"
typedef enum

@ -17,8 +17,6 @@
#ifndef _FORMATTING_H_
#define _FORMATTING_H_
#include "fmgr.h"
extern char *str_tolower(const char *buff, size_t nbytes, Oid collid);
extern char *str_toupper(const char *buff, size_t nbytes, Oid collid);

@ -19,7 +19,6 @@
#include "catalog/pg_class.h"
#include "catalog/pg_index.h"
#include "catalog/pg_publication.h"
#include "fmgr.h"
#include "nodes/bitmapset.h"
#include "rewrite/prs2lock.h"
#include "storage/block.h"
@ -159,7 +158,7 @@ typedef struct RelationData
Oid *rd_opfamily; /* OIDs of op families for each index col */
Oid *rd_opcintype; /* OIDs of opclass declared input data types */
RegProcedure *rd_support; /* OIDs of support procedures */
FmgrInfo *rd_supportinfo; /* lookup info for support procedures */
struct FmgrInfo *rd_supportinfo; /* lookup info for support procedures */
int16 *rd_indoption; /* per-column AM-specific flags */
List *rd_indexprs; /* index expression trees, if any */
List *rd_indpred; /* index predicate tree, if any */

@ -14,7 +14,6 @@
#define SNAPMGR_H
#include "access/transam.h"
#include "fmgr.h"
#include "utils/relcache.h"
#include "utils/resowner.h"
#include "utils/snapshot.h"

@ -23,7 +23,6 @@
#include "access/itup.h"
#include "executor/tuptable.h"
#include "fmgr.h"
#include "storage/dsm.h"
#include "utils/relcache.h"

Loading…
Cancel
Save