public inbox for [email protected]
help / color / mirror / Atom feedFrom: Álvaro Herrera <[email protected]>
Subject: [PATCH 1/3] add RELKIND_x_STR macros
Date: Mon, 2 Feb 2026 00:46:35 +0100
---
src/include/catalog/pg_class.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/include/catalog/pg_class.h b/src/include/catalog/pg_class.h
index 89ab34c8349..4afff1e8a4e 100644
--- a/src/include/catalog/pg_class.h
+++ b/src/include/catalog/pg_class.h
@@ -175,6 +175,19 @@ MAKE_SYSCACHE(RELNAMENSP, pg_class_relname_nsp_index, 128);
#define RELKIND_PARTITIONED_TABLE 'p' /* partitioned table */
#define RELKIND_PARTITIONED_INDEX 'I' /* partitioned index */
+/* annoying defines for client-side C string construction */
+#define RELKIND_RELATION_STR "'r'"
+#define RELKIND_INDEX_STR "'i'"
+#define RELKIND_SEQUENCE_STR "'S'"
+#define RELKIND_TOASTVALUE_STR "'t'"
+#define RELKIND_VIEW_STR "'v'"
+#define RELKIND_MATVIEW_STR "'m'"
+#define RELKIND_COMPOSITE_TYPE_STR "'c'"
+#define RELKIND_FOREIGN_TABLE_STR "'f'"
+#define RELKIND_PARTITIONED_TABLE_STR "'p'"
+#define RELKIND_PARTITIONED_INDEX_STR "'I'"
+
+
#define RELPERSISTENCE_PERMANENT 'p' /* regular table */
#define RELPERSISTENCE_UNLOGGED 'u' /* unlogged permanent table */
#define RELPERSISTENCE_TEMP 't' /* temporary table */
--
2.47.3
--a5gwxv7edi5gnyjn
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment;
filename="0002-replace-CppAsString2-RELKIND_x-with-RELKIND_x_STR.patch"
view thread (2+ messages)
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 1/3] add RELKIND_x_STR macros
In-Reply-To: <no-message-id-77476@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