Skip to content

Commit fb3b098

Browse files
committed
Remove fmgr.h includes from headers that don't really need it.
Most of the fmgr.h includes were obsoleted by 352a24a. 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
1 parent 6a04d34 commit fb3b098

File tree

23 files changed

+9
-25
lines changed

23 files changed

+9
-25
lines changed

src/backend/access/common/printsimple.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include "access/printsimple.h"
2222
#include "catalog/pg_type.h"
23-
#include "fmgr.h"
2423
#include "libpq/pqformat.h"
2524
#include "utils/builtins.h"
2625

src/backend/nodes/makefuncs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include "catalog/pg_class.h"
1919
#include "catalog/pg_type.h"
20-
#include "fmgr.h"
2120
#include "nodes/makefuncs.h"
2221
#include "nodes/nodeFuncs.h"
2322
#include "utils/lsyscache.h"

src/backend/replication/logical/logical.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include "postgres.h"
3030

31+
#include "fmgr.h"
3132
#include "miscadmin.h"
3233

3334
#include "access/xact.h"

src/backend/replication/pgoutput/pgoutput.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include "catalog/pg_publication.h"
1616

17+
#include "fmgr.h"
18+
1719
#include "replication/logical.h"
1820
#include "replication/logicalproto.h"
1921
#include "replication/origin.h"

src/include/access/brin.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#ifndef BRIN_H
1111
#define BRIN_H
1212

13-
#include "fmgr.h"
1413
#include "nodes/execnodes.h"
1514
#include "utils/relcache.h"
1615

src/include/access/gist_private.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "access/amapi.h"
1818
#include "access/gist.h"
1919
#include "access/itup.h"
20-
#include "fmgr.h"
2120
#include "lib/pairingheap.h"
2221
#include "storage/bufmgr.h"
2322
#include "storage/buffile.h"

src/include/access/hash.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "access/amapi.h"
2121
#include "access/itup.h"
2222
#include "access/sdir.h"
23-
#include "fmgr.h"
2423
#include "lib/stringinfo.h"
2524
#include "storage/bufmgr.h"
2625
#include "storage/lockdefs.h"

src/include/access/spgist.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "access/amapi.h"
1818
#include "access/xlogreader.h"
19-
#include "fmgr.h"
2019
#include "lib/stringinfo.h"
2120

2221

src/include/commands/async.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
#include <signal.h>
1717

18-
#include "fmgr.h"
19-
2018
/*
2119
* The number of SLRU page buffers we use for the notification queue.
2220
*/

src/include/executor/executor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define EXECUTOR_H
1616

1717
#include "executor/execdesc.h"
18+
#include "fmgr.h"
1819
#include "nodes/lockoptions.h"
1920
#include "nodes/parsenodes.h"
2021
#include "utils/memutils.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy