aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2020-10-15 20:37:19 -0400
committerBruce Momjian <bruce@momjian.us>2020-10-15 20:37:19 -0400
commitb05672c725d62760ce7cba1150975b17aba5e29b (patch)
tree225df7c7b9cc09d0187fc7f54f0439fb68d7920a /src
parentd9ae2297bf0f668467780bd80815a4a2d30e822c (diff)
downloadpostgresql-b05672c725d62760ce7cba1150975b17aba5e29b.tar.gz
postgresql-b05672c725d62760ce7cba1150975b17aba5e29b.zip
pg_upgrade: remove C99 compiler req. from commit 3c0471b5fd
This commit required support for inline variable definition, which is not a requirement. RELEASE NOTE AUTHOR: the author of commit 3c0471b5fd (pg_upgrade/tablespaces) was Justin Pryzby, not me. Reported-by: Andres Freund Discussion: https://postgr.es/m/20201016001959.h24fkywfubkv2pc5@alap3.anarazel.de Backpatch-through: 9.5
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_upgrade/check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c
index e0a9d37c13a..3c0a1b05f05 100644
--- a/src/bin/pg_upgrade/check.c
+++ b/src/bin/pg_upgrade/check.c
@@ -496,11 +496,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
static void
check_for_new_tablespace_dir(ClusterInfo *new_cluster)
{
+ int tblnum;
char new_tablespace_dir[MAXPGPATH];
prep_status("Checking for new cluster tablespace directories");
- for (int tblnum = 0; tblnum < os_info.num_old_tablespaces; tblnum++)
+ for (tblnum = 0; tblnum < os_info.num_old_tablespaces; tblnum++)
{
struct stat statbuf;