Skip to content

Commit 3e6f01f

Browse files
committed
pg_upgrade: revert part of patch for ease of translation
Revert part of 959ee6d . Backpatch-through: 10
1 parent 959ee6d commit 3e6f01f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/bin/pg_upgrade/server.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,13 @@ start_postmaster(ClusterInfo *cluster, bool throw_error)
310310
* running.
311311
*/
312312
if (!pg_ctl_return)
313-
pg_fatal("pg_ctl failed to start the %s server, or connection failed\n",
314-
cluster == &old_cluster ? "source" : "target");
313+
{
314+
/* keep error strings separate to ease translation */
315+
if (cluster == &old_cluster)
316+
pg_fatal("pg_ctl failed to start the source server, or connection failed\n");
317+
else
318+
pg_fatal("pg_ctl failed to start the target server, or connection failed\n");
319+
}
315320

316321
return true;
317322
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy