From f81fb4f690355bc88fee69624103956fb4576fe5 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Wed, 7 Sep 2011 12:41:16 -0400
Subject: [PATCH] Fix bug introduced by pgrminclude where the tablespace
 version name was not expanded.

Bump catalog version number to force initdb for all tablespaces.
---
 src/include/catalog/catalog.h    | 5 +++++
 src/include/catalog/catversion.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/include/catalog/catalog.h b/src/include/catalog/catalog.h
index 1e1e12d36de..e472e050692 100644
--- a/src/include/catalog/catalog.h
+++ b/src/include/catalog/catalog.h
@@ -14,6 +14,11 @@
 #ifndef CATALOG_H
 #define CATALOG_H
 
+/*
+ *	'pgrminclude ignore' needed here because CppAsString2() does not throw
+ *	an error if the symbol is not defined.
+ */
+#include "catalog/catversion.h"	/* pgrminclude ignore */
 #include "catalog/pg_class.h"
 #include "storage/relfilenode.h"
 #include "utils/relcache.h"
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h
index f5c9797c608..f3c8bb41422 100644
--- a/src/include/catalog/catversion.h
+++ b/src/include/catalog/catversion.h
@@ -53,6 +53,6 @@
  */
 
 /*							yyyymmddN */
-#define CATALOG_VERSION_NO	201108051
+#define CATALOG_VERSION_NO	201109071
 
 #endif
-- 
GitLab