Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZdzp-00069r-W7 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2020 17:51:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kZdzo-0008Fc-V4 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2020 17:51:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZdzo-0008FV-O7 for pgsql-hackers@lists.postgresql.org; Mon, 02 Nov 2020 17:51:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZdzm-0005l3-Lt for pgsql-hackers@postgresql.org; Mon, 02 Nov 2020 17:51:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0A2HpdYx686360; Mon, 2 Nov 2020 12:51:39 -0500 From: Tom Lane To: Thomas Munro cc: Julien Rouhaud , Peter Eisentraut , Michael Paquier , Robert Haas , Laurenz Albe , Douglas Doole , Christoph Berg , Pg Hackers Subject: Re: Collation versioning In-reply-to: References: <20200813095204.f7mlgdzsbaxa3mzr@nol> <20200814073746.GF2057@paquier.xyz> <20200814090235.ifld2qvaw43pzpzg@nol> <20200907031741.GK2455@paquier.xyz> <20200908144507.GA57691@nol> <20200924094854.abjmpfqixq6xd4o5@nol> Comments: In-reply-to Thomas Munro message dated "Tue, 03 Nov 2020 02:38:31 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <686358.1604339499.1@sss.pgh.pa.us> Date: Mon, 02 Nov 2020 12:51:39 -0500 Message-ID: <686359.1604339499@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > Hmm, a failure from dory (WIndows) during pg_upgrade: > performing post-bootstrap initialization ... 2020-11-02 08:08:22.213 > EST [5392] FATAL: could not get collation version for locale > "English_United States.1252": error code 87 > 87 means invalid parameter. I'm surprised it got through various > other tests and then failed here. Whelk (also Windows) passed using > "German_Germany.1252". Hmm. I'll wait for more Windows systems to > report. drongo just did it too, and it seems repeatable on dory. I'm not 100% sure, but I think the buildfarm's initial "check" step may be run under C locale while pg_upgrade sees whatever the machine's prevailing locale is. If that's correct, it seems like the simplest explanation is just that extraction of a collation version is busted for (some?) non-C locales on Windows. Could be something as dumb as spaces in the locale name being problematic. regards, tom lane