From d0e7e04ede165abc95ca16bd9fa93284cc4dac6d Mon Sep 17 00:00:00 2001 From: Álvaro Herrera Date: Thu, 14 Aug 2025 17:48:46 +0200 Subject: Avoid including tableam.h and xlogreader.h in nbtree.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Bertrand Drouvot Discussion: https://postgr.es/m/202508051109.lzk3lcuzsaxo@alvherre.pgsql --- contrib/btree_gist/btree_ts.c | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/btree_gist/btree_ts.c') diff --git a/contrib/btree_gist/btree_ts.c b/contrib/btree_gist/btree_ts.c index 1e8f83f0f0a..b7bbae2f4d6 100644 --- a/contrib/btree_gist/btree_ts.c +++ b/contrib/btree_gist/btree_ts.c @@ -10,6 +10,7 @@ #include "utils/fmgrprotos.h" #include "utils/timestamp.h" #include "utils/float.h" +#include "utils/rel.h" #include "utils/sortsupport.h" typedef struct -- cgit v1.2.3