Content-Length: 255782 | pFad | http://github.com/postgrespro/postgres/commit/74205266d4925b54bf1d77bae7b0e7f60f68840a

12 Fix pg_upgrade log file cleanup code · postgrespro/postgres@7420526 · GitHub
Skip to content

Commit 7420526

Browse files
committed
Fix pg_upgrade log file cleanup code
Recent pg_upgrade parallel improvements introduced a bug that prevented cleanup of per-database log files.
1 parent ff64fd4 commit 7420526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ cleanup(void)
574574
snprintf(sql_file_name, sizeof(sql_file_name), DB_DUMP_FILE_MASK, old_db->db_oid);
575575
unlink(sql_file_name);
576576

577-
snprintf(log_file_name, sizeof(log_file_name), DB_DUMP_FILE_MASK, old_db->db_oid);
577+
snprintf(log_file_name, sizeof(log_file_name), DB_DUMP_LOG_FILE_MASK, old_db->db_oid);
578578
unlink(log_file_name);
579579
}
580580
}

0 commit comments

Comments
 (0)








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: http://github.com/postgrespro/postgres/commit/74205266d4925b54bf1d77bae7b0e7f60f68840a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy