Content-Length: 13228 | pFad | https://postgr.es/c/0ab7ca98a

git.postgresql.org Git - postgresql.git/commitdiff
pg_upgrade: remove C99 compiler req. from commit 3c0471b5fd
authorBruce Momjian <bruce@momjian.us>
Fri, 16 Oct 2020 00:37:20 +0000 (20:37 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 16 Oct 2020 00:37:20 +0000 (20:37 -0400)
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

index d31723a634f4f9ef73a86d26099edada8d766d48..de607c67f428ca99910f3cfd08891460bc341e67 100644 (file)
@@ -540,11 +540,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;
 








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://postgr.es/c/0ab7ca98a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy