git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c0471b)
pg_upgrade: remove C99 compiler req. from commit 3c0471b5fd
2020年10月16日 00:37:20 +0000 (20:37 -0400)
2020年10月16日 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


diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c
index c24ca9b141d011cbff43c9eb87481b02a0da5195..05e6bf7f2c3493013529d9d620db46ce1cfd0bbf 100644 (file)
--- a/src/bin/pg_upgrade/check.c
+++ b/src/bin/pg_upgrade/check.c
@@ -547,11 +547,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;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /