From 1c7087af422fcdd6785a8e2dccbfc1ed567171a0 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sat, 21 Mar 2015 22:14:49 -0400
Subject: [PATCH] Add TOAST table to pg_shseclabel for long label use

Report by Andres Freund
---
 src/backend/catalog/catalog.c  | 4 +++-
 src/include/catalog/toasting.h | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/backend/catalog/catalog.c b/src/backend/catalog/catalog.c
index 8e7a9ec2ba3..e9d3cdcc9d4 100644
--- a/src/backend/catalog/catalog.c
+++ b/src/backend/catalog/catalog.c
@@ -246,7 +246,9 @@ IsSharedRelation(Oid relationId)
 	if (relationId == PgShdescriptionToastTable ||
 		relationId == PgShdescriptionToastIndex ||
 		relationId == PgDbRoleSettingToastTable ||
-		relationId == PgDbRoleSettingToastIndex)
+		relationId == PgDbRoleSettingToastIndex ||
+		relationId == PgShseclabelToastTable ||
+		relationId == PgShseclabelToastIndex)
 		return true;
 	return false;
 }
diff --git a/src/include/catalog/toasting.h b/src/include/catalog/toasting.h
index cba4ae7ad98..fb2f03532b4 100644
--- a/src/include/catalog/toasting.h
+++ b/src/include/catalog/toasting.h
@@ -62,5 +62,8 @@ DECLARE_TOAST(pg_shdescription, 2846, 2847);
 DECLARE_TOAST(pg_db_role_setting, 2966, 2967);
 #define PgDbRoleSettingToastTable 2966
 #define PgDbRoleSettingToastIndex 2967
+DECLARE_TOAST(pg_shseclabel, 4060, 4061);
+#define PgShseclabelToastTable 4060
+#define PgShseclabelToastIndex 4061
 
 #endif   /* TOASTING_H */
-- 
GitLab