pg.ddx.io  pgsql-translators@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
To: pgsql-translators@postgresql.org
Subject: pg_upgrade translation
Date: Mon, 22 May 2017 20:28:27 -0400
Message-ID: <20170523002827.lzc2jkzh2gubclqb@alvherre.pgsql> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-translators>

Translatability was turned on for pg_upgrade on pg10, but it needs some
work.  The choices are we fix it now, or we revert the addition of NLS
there and we do it for PG11.

I think the ugliest one is to change the messages about "the %s server",
which are about a dozen -- things like:
    msgid "pg_ctl failed to start the %s server, or connection failed\n"
where the %s is either "new" or "old".

These need be to be split in two messages, and I think I'd replace the
"old" with "source" and "new" with "target".  Something like this:

inline patch 1: src/bin/pg_upgrade/server.c (+7/-0 lines) download inline-1.patch*** a/src/bin/pg_upgrade/server.c --- b/src/bin/pg_upgrade/server.c *************** *** 285,293 **** start_postmaster(ClusterInfo *cluster, bool throw_error) PQerrorMessage(conn)); if (conn) PQfinish(conn); ! pg_fatal("could not connect to %s postmaster started with the command:\n" ! "%s\n", ! CLUSTER_NAME(cluster), cmd); } PQfinish(conn); --- 285,297 ---- PQerrorMessage(conn)); if (conn) PQfinish(conn); ! if (cluster == &old_cluster) ! pg_fatal("could not connect to source postmaster started with the command:\n" ! "%s\n", cmd); ! else ! pg_fatal("could not connect to target postmaster started with the command:\n" ! "%s\n", cmd); ! } PQfinish(conn);
Aye or nay? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-translators mailing list (pgsql-translators@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-translators

view thread (4+ messages)  latest in thread

Message-ID: <20170523002827.lzc2jkzh2gubclqb@alvherre.pgsql>
Permalink:  ../20170523002827.lzc2jkzh2gubclqb@alvherre.pgsql/
Also on:    postgresql.org/message-id/20170523002827.lzc2jkzh2gubclqb@alvherre.pgsql

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-translators@postgresql.org
  Cc: alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: pg_upgrade translation
  In-Reply-To: <20170523002827.lzc2jkzh2gubclqb@alvherre.pgsql>
  References: <20170523002827.lzc2jkzh2gubclqb@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox