Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7DBAEB5F717 for ; Wed, 1 Jun 2011 17:33:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 12886-02 for ; Wed, 1 Jun 2011 20:33:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 68871B5F712 for ; Wed, 1 Jun 2011 17:33:07 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p51KX2wq024406; Wed, 1 Jun 2011 16:33:02 -0400 (EDT) To: Florian Pflug cc: Peter Eisentraut , Bruce Momjian , Robert Haas , Tim Uckun , PostgreSQL-development Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not. In-reply-to: <471C1E74-0A8F-45ED-8F31-3AFE10626A61@phlo.org> References: <201105241959.p4OJxxL05180@momjian.us> <1306942821.2279.0.camel@vanquo.pezone.net> <21309.1306948863@sss.pgh.pa.us> <1306952936.2279.2.camel@vanquo.pezone.net> <471C1E74-0A8F-45ED-8F31-3AFE10626A61@phlo.org> Comments: In-reply-to Florian Pflug message dated "Wed, 01 Jun 2011 21:56:25 +0200" Date: Wed, 01 Jun 2011 16:33:02 -0400 Message-ID: <24405.1306960382@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/53 X-Sequence-Number: 188766 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. regards, tom lane