public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andres Freund <[email protected]>
Subject: [PATCH v2 7/9] Don't include tupdesc.h in relcache.h
Date: Fri, 20 Mar 2026 13:01:49 -0400

Author:
Reviewed-by:
Discussion: https://postgr.es/m/
Backpatch:
---
 src/include/catalog/catalog.h | 1 +
 src/include/utils/relcache.h  | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/include/catalog/catalog.h b/src/include/catalog/catalog.h
index a9d6e8ea986..e7b76b5ffe3 100644
--- a/src/include/catalog/catalog.h
+++ b/src/include/catalog/catalog.h
@@ -14,6 +14,7 @@
 #ifndef CATALOG_H
 #define CATALOG_H
 
+#include "access/attnum.h"
 #include "catalog/pg_class.h"
 #include "utils/relcache.h"
 
diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h
index 2700224939a..35944da6577 100644
--- a/src/include/utils/relcache.h
+++ b/src/include/utils/relcache.h
@@ -14,9 +14,9 @@
 #ifndef RELCACHE_H
 #define RELCACHE_H
 
-#include "access/tupdesc.h"
 #include "common/relpath.h"
 #include "nodes/bitmapset.h"
+#include "nodes/pg_list.h"
 
 
 /*
@@ -24,7 +24,9 @@
  */
 #define RELCACHE_INIT_FILENAME	"pg_internal.init"
 
+/* forward references in this file */
 typedef struct RelationData *Relation;
+typedef struct TupleDescData *TupleDesc;
 
 /* ----------------
  *		RelationPtr is used in the executor to support index scans
-- 
2.53.0.1.gb2826b52eb


--jmpqp62znaydqx65
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="v2-0008-Don-t-include-relcache.h-in-rel.h.patch"



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [PATCH v2 7/9] Don't include tupdesc.h in relcache.h
  In-Reply-To: <no-message-id-601445@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox