Skip to content

Commit bc3a94d

Browse files
committed
Add missing include to pg_upgrade/version.c
Commit 8d48e6a 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
1 parent 235a52c commit bc3a94d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pg_upgrade/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
#include "pg_upgrade.h"
1313

14+
#include "catalog/pg_class.h"
15+
1416

1517

1618
/*

0 commit comments

Comments
 (0)