From 5948c4edc69f965b7c774a29fce2d9b4be59baa1 Mon Sep 17 00:00:00 2001 From: reshke Date: Mon, 22 Dec 2025 17:25:21 +0000 Subject: [PATCH] Fix pg_rewind fail in TAP tests. With --enable-cassert fails in pg_log_generic_v function, in Assert(fmt[strlen(fmt) - 1] != '\n'); Trivially fix removing \n This assertion is introduced cc8d41511721 --- src/bin/pg_rewind/pg_rewind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_rewind/pg_rewind.c b/src/bin/pg_rewind/pg_rewind.c index 71624cea745..2fae1ffc1b0 100644 --- a/src/bin/pg_rewind/pg_rewind.c +++ b/src/bin/pg_rewind/pg_rewind.c @@ -1083,11 +1083,11 @@ get_target_dbid(const char *argv0) if (ret == -1) pg_fatal("The program \"postgres\" is needed by %s but was \n" "not found in the same directory as \"%s\".\n" - "Check your installation.\n", progname, full_path); + "Check your installation.", progname, full_path); else pg_fatal("The program \"postgres\" was found by \"%s\"\n" "but was not the same version as %s.\n" - "Check your installation.\n", full_path, progname); + "Check your installation.`", full_path, progname); } snprintf(cmd, MAXCMDLEN, "\"%s\" -D \"%s\" -C gp_dbid",