postgres.git / summary / log / commit / refs

commit    6e34cc8ab596bd8c730fe786b068a400b7d502e9
Author:   Bruce Momjian <bruce@momjian.us>
Date:     Fri Oct 16 00:37:19 2020 +0000
First released in: 14.0, 9.5.24, 9.6.20, 10.15, 11.10, 12.5, 13.1

    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


src/bin/pg_upgrade/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c index 085e3346146..94ea6448915 100644 --- a/src/bin/pg_upgrade/check.c +++ b/src/bin/pg_upgrade/check.c @@ -513,11 +513,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; [parent: 85fedf39f07e]