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 1lHmp9-0007mn-2m for pgsql-admin@arkaria.postgresql.org; Thu, 04 Mar 2021 12:11:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHmp4-0005kT-O8 for pgsql-admin@arkaria.postgresql.org; Thu, 04 Mar 2021 12:11:18 +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 1lHjX5-0001vG-4c for pgsql-admin@lists.postgresql.org; Thu, 04 Mar 2021 08:40:31 +0000 Received: from mail.patrickelmer.de ([173.249.14.187]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHjX2-0001Mb-Qw for pgsql-admin@lists.postgresql.org; Thu, 04 Mar 2021 08:40:30 +0000 MIME-Version: 1.0 Date: Thu, 04 Mar 2021 09:40:26 +0100 From: mail@localhorst.es To: pgsql-admin@lists.postgresql.org Subject: Different encodings and locales on one machine Message-ID: X-Sender: mail@localhorst.es Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, at the moment I am running two different PostgreSQL (12) servers on one Ubuntu 20.04 machine. For server one I need WIN1252 encoding with "de_DE.cp1252" locales set. For server two I need UTF8 encoding, but also with "de_DE.cp1252" locales set. I added support for de_DE.CP1252 CP1252 de_DE.CP1252 UTF-8 to /usr/local/share/i18n/SUPPORTED and /etc/locale.gen and ran locale-gen PostgreSQL seems only to recognize the last entry I added. So I can either use "WIN1252" or "UTF-8" encoding with "de_DE.cp1252" locales. Maybe I just have problems understanding how Liunx is handling encodings and locales. Does anyone is successfully running PostgreSQL with a similar setup as I described? Kind regards, Patrick