Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edkgX-0007ac-Qh for pgsql-general@arkaria.postgresql.org; Mon, 22 Jan 2018 22:35:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edkgX-0000Zw-5v for pgsql-general@arkaria.postgresql.org; Mon, 22 Jan 2018 22:35:25 +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 1edkgW-0000Zm-NT for pgsql-general@lists.postgresql.org; Mon, 22 Jan 2018 22:35:24 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1edkgO-0006oC-5l for pgsql-general@lists.postgresql.org; Mon, 22 Jan 2018 22:35:23 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 2510621526; Mon, 22 Jan 2018 17:35:14 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Mon, 22 Jan 2018 17:35:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=FjtN9t IyUhQi4WE9ALu9aYs3DZx1FS7yTlS4Q5xJ+Qg=; b=W694LhmkSdIkKriYFEsn6Q IFsjsyigeoFkK4ktcH6xMrs82Z0rl7fm+dEj2aInM4NI+4HYMP1j8YlexxhuobNv /HgrfZSYoPi60IDMuzi4KDH/PpnimxAKw/iPceS1hKV4n29Q/fz2DzMxL5FZuPbp cUirqyqwG2L3phrJNRMEMHwAwIJrv0RUpRAJOFhl3eKouoksVKcQfXmL+1LItCP5 gA3OGZvTdFp78uFprDi+Qqs4y58JXj1hmpXKmm+kgQds0fK4JTZBgsLKfKDcJ6B+ 5TRW7GceXp7WFpD53pZwgF+YyU9T4jQHJAq7PivrVNOWvJ8E2aPWOEE4BOIZuw2w == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id DA77F240F8; Mon, 22 Jan 2018 17:35:13 -0500 (EST) Subject: Re: Changing locale/charset To: Martin Moore , "pgsql-general@lists.postgresql.org" References: <7A9AC752-FBA5-4A4D-B893-CE56A69F6941@avbrief.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 22 Jan 2018 17:35:13 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <7A9AC752-FBA5-4A4D-B893-CE56A69F6941@avbrief.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/22/18 16:18, Martin Moore wrote: > I created a 10.1 cluster on Debian using UTF8. > I’d like to convert it to LATIN1, but am having various issues. So, it’s probably easiest to start again (I have a dump of the DB). > > To ensure I get it right, what is the correct way to create a cluster with LATIN1 encoding, how to remove the existing cluster and how to ensure I have the right settings for LOCALE etc. in the OS? pg_lsclusters pg_dropcluster VERSION NAME pg_createcluster VERSION NAME --locale=xx_XX where xx_XX is chosen by you. You previous cluster probably had a locale of xx_XX.utf8, so it had the UTF8 encoding. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services