Skip to content

Commit d0e7e04

Browse files
author
Álvaro Herrera
committed
Avoid including tableam.h and xlogreader.h in nbtree.h
Doing that seems rather random and unnecessary. This commit removes those and fixes fallout, which is pretty minimal. We do need to add a forward declaration of struct TM_IndexDeleteOp (whose full definition appears in tableam.h) so that _bt_delitems_delete_check()'s declaration can use it. Author: Álvaro Herrera <alvherre@kurilemu.de> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/202508051109.lzk3lcuzsaxo@alvherre.pgsql
1 parent ed07361 commit d0e7e04

26 files changed

+31
-3
lines changed

contrib/btree_gist/btree_bool.c

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

66
#include "btree_gist.h"
77
#include "btree_utils_num.h"
8+
#include "utils/rel.h"
89
#include "utils/sortsupport.h"
910

1011
typedef struct boolkey

contrib/btree_gist/btree_cash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "btree_utils_num.h"
88
#include "common/int.h"
99
#include "utils/cash.h"
10+
#include "utils/rel.h"
1011
#include "utils/sortsupport.h"
1112

1213
typedef struct

contrib/btree_gist/btree_date.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "btree_utils_num.h"
88
#include "utils/fmgrprotos.h"
99
#include "utils/date.h"
10+
#include "utils/rel.h"
1011
#include "utils/sortsupport.h"
1112

1213
typedef struct

contrib/btree_gist/btree_enum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "fmgr.h"
99
#include "utils/fmgrprotos.h"
1010
#include "utils/fmgroids.h"
11+
#include "utils/rel.h"
1112
#include "utils/sortsupport.h"
1213

1314
/* enums are really Oids, so we just use the same structure */

contrib/btree_gist/btree_float4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "btree_gist.h"
77
#include "btree_utils_num.h"
88
#include "utils/float.h"
9+
#include "utils/rel.h"
910
#include "utils/sortsupport.h"
1011

1112
typedef struct float4key

contrib/btree_gist/btree_float8.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "btree_gist.h"
77
#include "btree_utils_num.h"
88
#include "utils/float.h"
9+
#include "utils/rel.h"
910
#include "utils/sortsupport.h"
1011

1112
typedef struct float8key

contrib/btree_gist/btree_inet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "btree_utils_num.h"
88
#include "catalog/pg_type.h"
99
#include "utils/builtins.h"
10+
#include "utils/rel.h"
1011
#include "utils/sortsupport.h"
1112

1213
typedef struct inetkey

contrib/btree_gist/btree_int2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "btree_gist.h"
77
#include "btree_utils_num.h"
88
#include "common/int.h"
9+
#include "utils/rel.h"
910
#include "utils/sortsupport.h"
1011

1112
typedef struct int16key

contrib/btree_gist/btree_int4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "btree_gist.h"
66
#include "btree_utils_num.h"
77
#include "common/int.h"
8+
#include "utils/rel.h"
89
#include "utils/sortsupport.h"
910

1011
typedef struct int32key

contrib/btree_gist/btree_int8.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "btree_gist.h"
77
#include "btree_utils_num.h"
88
#include "common/int.h"
9+
#include "utils/rel.h"
910
#include "utils/sortsupport.h"
1011

1112
typedef struct int64key

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