]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
pg_upgrade: Add missing newline in output, another one
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 8 Aug 2025 06:47:10 +0000 (08:47 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 8 Aug 2025 06:47:10 +0000 (08:47 +0200)
This came from the backport of commit f295494d338, but older branches
require the explicit newline in messages (see commit 7652353d87a).

src/bin/pg_upgrade/check.c

index ae18e04666f74612363c4de053b8eb5513d40af9..435ec05186d1295a52e14af109c5afe45750c797 100644 (file)
@@ -1282,7 +1282,7 @@ check_for_not_null_inheritance(ClusterInfo *cluster)
                for (int i = 0; i < ntup; i++)
                {
                        if (script == NULL && (script = fopen_priv(output_path, "w")) == NULL)
-                               pg_fatal("could not open file \"%s\": %s", output_path, strerror(errno));
+                               pg_fatal("could not open file \"%s\": %s\n", output_path, strerror(errno));
                        if (!db_used)
                        {
                                fprintf(script, "In database: %s\n", active_db->db_name);