summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-10-16 16:08:40 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2019-10-16 16:20:07 +0200
commite09ab32a22058f5f337533f8ac6992744b440caf (patch)
tree8f32e2a7d8d271e6754e4273457b3bc0f9844f26 /src
parent0a643de0871540c320a02717b202984a1a1ef5df (diff)
Add missing include to pg_upgrade/version.c
Commit 8d48e6a724 uses RELKIND_ constants when building the query, but did not include the header defining them. On 10+ this header is already included, but on 9.6 and earlier it was missing. It compiles just fine, but then fails during execution ERROR: column "relkind_relation" does not exist Fix by adding the necessary header file, and backpatch to 9.4-. Backpatch-to: 9.4- Discussion: https://postgr.es/m/16045-673e8fa6b5ace196%40postgresql.org
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_upgrade/version.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/pg_upgrade/version.c b/src/bin/pg_upgrade/version.c
index 0028d518d0c..f185953a332 100644
--- a/src/bin/pg_upgrade/version.c
+++ b/src/bin/pg_upgrade/version.c
@@ -10,6 +10,8 @@
#include "postgres_fe.h"
#include "pg_upgrade.h"
+
+#include "catalog/pg_class.h"
#include "fe_utils/string_utils.h"