Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8CEFCB5DBCD for ; Thu, 13 Oct 2011 14:09:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 90679-03 for ; Thu, 13 Oct 2011 17:09:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 7085BB5DBBD for ; Thu, 13 Oct 2011 14:09:18 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p9DH97j21789; Thu, 13 Oct 2011 13:09:07 -0400 (EDT) From: Bruce Momjian Message-Id: <201110131709.p9DH97j21789@momjian.us> Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not. In-Reply-To: <24405.1306960382@sss.pgh.pa.us> To: Tom Lane Date: Thu, 13 Oct 2011 13:09:07 -0400 (EDT) CC: Florian Pflug , Peter Eisentraut , Robert Haas , Tim Uckun , PostgreSQL-development X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/793 X-Sequence-Number: 196599 Tom Lane wrote: > Florian Pflug writes: > > On Jun1, 2011, at 20:28 , Peter Eisentraut wrote: > >> Well, initdb still succeeds if you give it an invalid locale name. It > >> warns, but that can easily be missed if initdb is hidden behind a few > >> other layers. If you then run pg_upgrade, you get a hosed instance. > > > Whats the rational behind that behaviour? Wouldn't it be more user-friendly > > if initdb failed outright? It'd also be consistent with CREATE DATABASE... > > I think we were being conservative about whether initdb would get it > right. Might be time to stiffen our spines a bit, now that the logic > has been through a few release cycles. Do we want to revisit this? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +