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 1o4QMg-0003JH-GP for pgsql-general@arkaria.postgresql.org; Thu, 23 Jun 2022 17:11:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o4QMd-00032T-8s for pgsql-general@arkaria.postgresql.org; Thu, 23 Jun 2022 17:11:31 +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 1o4QMb-000326-GN for pgsql-general@lists.postgresql.org; Thu, 23 Jun 2022 17:11:30 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4QMX-00034k-Jv for pgsql-general@lists.postgresql.org; Thu, 23 Jun 2022 17:11:29 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 069DB5C0050; Thu, 23 Jun 2022 13:11:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 23 Jun 2022 13:11:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1656004283; x= 1656090683; bh=tdui/hPpnS/kgcAHaHaIjB1VDp8WWgPgGgt8O+zTtWs=; b=H e5K5kJcEGCVLHmhszKFF5m0kmsliizUew28l0QAsL5XCxvrrfTcjisF6GOZR3TlZ E5nHTO3ETb9Mns+lU8KJWtCowGqklNUttOz97rIqaE6SxjISjCulnoWte9fMtVFl 26s9oZ+vnhEDpyfV+Fq/3s8Hzo5CG27/WYecXaqpfNot+mg/qWuWvUnLutuxCd4Z vSaRop+l1C23Az/FWmtcELSxn2f+htwZ/R+3G76k+F/8L068FQNRdM8Y1JPvZeDv jzqWmCTB1gHESN7WbqVuxD799bEw+tcIPl0B7YHfIyTN5qYPpRzOY4aMhRbQsmpL 9ArD8xWbiebX1dvsN4avw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1656004283; x=1656090683; bh=t dui/hPpnS/kgcAHaHaIjB1VDp8WWgPgGgt8O+zTtWs=; b=gVqO/LfTz//PSGsZ1 mFaC7U/XZaiXTMsZ1Z+LYWCMpE4qdOXhg7CWV9C2wp994j2oeUkjrDW+zMAHBuTW Wt/dFKdouy0/Vu6Sz2cTus3EE4ewD5wc+rl4jKDW3QTMFQaI+4dHv+yAEEhtpiq6 9P0Si7lm0l+8pooncxOWFewFPpQyQ68jU3+4e+NyG8c1F1BA8yycIGLHyOnCwxFP LiX8gvaelIqaQMKflW0laEP6iYwLh00RvP12yLBHudsYtQ+yrNpIt1TvTE7Uc61a tkGReJtw57ZP0rEiN3WVidH+DMZI78gb/2J8DTfNHzKRaXCq1nVfy6Z1bmJTCjJj dpeHQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepudfgueelgeevfffhgeeljeehhfettdegieelgefg heefffefveegjedtueetffdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jun 2022 13:11:22 -0400 (EDT) Message-ID: <3370e253-1928-294a-facb-e9850bfefa90@aklaver.com> Date: Thu, 23 Jun 2022 10:11:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8) Content-Language: en-US To: Tomas Pospisek , pgsql-general@lists.postgresql.org References: <8c998edf-82a1-0769-77d7-7ef5076c098c@aklaver.com> <06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch> From: Adrian Klaver In-Reply-To: <06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/23/22 00:37, Tomas Pospisek wrote: > On 22.06.22 22:18, Tomas Pospisek wrote: >> On 22.06.22 21:25, Adrian Klaver wrote: >>> On 6/22/22 12:17, Tomas Pospisek wrote: > > So I used both pg_dump and pg_restore from the newer machine. Result is > still the same.  So I'll use Tom Lane's suggestion too and fix the > 'UTF-8' spelling in the dump file: Not sure why that is necessary? Is seems this is low hanging fruit that could dealt with by the equivalent of lower('en_US.UTF-8') = lower('en_US.utf-8'). > > Tom Lane wrote: > > > This is probably more about dumping from different operating systems. > > The spelling of the locale name is under the control of the OS, > > and Postgres doesn't know very much about the semantics of it > > (so I think we conservatively assume that any difference in > > spelling is significant). > > > > Best bet might be to edit the dump file to adjust the locale > > spellings to match your new system. > > Many thanks to both Tom & Adrian!!! > *t > > -- Adrian Klaver adrian.klaver@aklaver.com