Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCxgj-0007PW-Nt for pgsql-translators@arkaria.postgresql.org; Tue, 23 May 2017 00:28:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dCxgj-0001FK-Ag for pgsql-translators@arkaria.postgresql.org; Tue, 23 May 2017 00:28:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dCxgg-0001AN-Sc for pgsql-translators@postgresql.org; Tue, 23 May 2017 00:28:34 +0000 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dCxgd-00007q-7g for pgsql-translators@postgresql.org; Tue, 23 May 2017 00:28:34 +0000 Received: by mail-it0-x233.google.com with SMTP id o5so9638739ith.1 for ; Mon, 22 May 2017 17:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=c8kNoL0dO0qVjbQQNuc5QKvk9NZqqc89ZKiVpdSHqR4=; b=vW0pIPQ9+cL9v0gp3FfeC6nFo6kF2l4gMpYE3u3189Lu1p5vljvkbllb53cJV1QPHF EHHZQfVuysPIX6D8MUxRsgvFEB12T2l18YSqw4TZQI0dDXNmpUf2hucpR4yLT/lC2d1L zEcVS4JGVRwJtJ5WmrAbTm+qpNHwbo9sbR/rdqPulXcIAkcOE7Eygbl/L8AmnCI10aTJ npeQ88QbaYGgel900lOgZHIg85LdpNIeEoqoKV2rZXAiGwU4FZQXY1kqxOcBfRd7k/f7 lwudEsnSO3+UXznT6Ciy4aexZoHlGdNi0mDNBKbdee+z40cMyHuLor/IuYvxwCTkf+eg EQvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=c8kNoL0dO0qVjbQQNuc5QKvk9NZqqc89ZKiVpdSHqR4=; b=OfdiCbUqnXAzR+PxKS3frePJW2lPNkBPjLjYlnTKX+DIG9GUwGDML0/KgTdVZJLUSZ bD77TLYORVFl+iKj/Q44zQBSIna4XSQFjxminPecABAyTT5A3EBPau/1EZJl3EmaXTCB 0CK+lC97C2lJRcArj9PxhHgk1ekEVW2Hdo6s997NXtRbOVroHajpak6iI5KHFfy9YfoS IpUf9npa3dJBf0PBJORTcl0H0AtGTXmFeev+DrLBoHML9CSPTvDgGRjtf3tYp6q+MwS+ O4j8lg/xn/MNZlKQC53RBq6q6xFphQ3sc0Jh7FRI1CPfOltYWUlA5axNLcfjqlrLIeC4 GA9Q== X-Gm-Message-State: AODbwcBJSGCa7iYHNq8prrsaZJTyOwPBo518I1ItUDL6PzL72ve7zGAw i9JpmT38H5rHqdJD X-Received: by 10.36.245.132 with SMTP id k126mr341943ith.43.1495499309387; Mon, 22 May 2017 17:28:29 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([38.64.177.99]) by smtp.gmail.com with ESMTPSA id g12sm7450342iog.60.2017.05.22.17.28.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 17:28:28 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 911EE564; Mon, 22 May 2017 20:28:27 -0400 (-04) Date: Mon, 22 May 2017 20:28:27 -0400 From: Alvaro Herrera To: Pg Hackers , pgsql-translators@postgresql.org Subject: pg_upgrade translation Message-ID: <20170523002827.lzc2jkzh2gubclqb@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-translators Precedence: bulk Sender: pgsql-translators-owner@postgresql.org 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: *** 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