diff options
| author | Tomas Vondra | 2019-10-16 14:08:40 +0000 |
|---|---|---|
| committer | Tomas Vondra | 2019-10-16 14:28:48 +0000 |
| commit | bc3a94dc00059955aeb611d611d064faf66dc2f8 (patch) | |
| tree | 8fb25a8b8f420e2f196bf294dd324e8526dc13d7 | |
| parent | 235a52ca0f260169521f47c9ae340e511f77023c (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
| -rw-r--r-- | contrib/pg_upgrade/version.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/version.c b/contrib/pg_upgrade/version.c index acbc1f0f4e6..9b0301d3d4a 100644 --- a/contrib/pg_upgrade/version.c +++ b/contrib/pg_upgrade/version.c @@ -11,6 +11,8 @@ #include "pg_upgrade.h" +#include "catalog/pg_class.h" + /* |
