Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwAML-0000He-3A for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Dec 2014 13:52:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwAMK-0002Px-Jd for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Dec 2014 13:52:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xw4ji-0002Wd-IL for pgsql-bugs@postgresql.org; Wed, 03 Dec 2014 07:52:34 +0000 Received: from mail-wg0-x236.google.com ([2a00:1450:400c:c00::236]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xw4ja-0000xF-Tg for pgsql-bugs@postgresql.org; Wed, 03 Dec 2014 07:52:32 +0000 Received: by mail-wg0-f54.google.com with SMTP id l2so19040183wgh.13 for ; Tue, 02 Dec 2014 23:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=o9qtD+YFPPgQruf2S98erj1ouMycmTSwghmtm/0FgVk=; b=VALm/HMPLWxMWR+uKa6OjUmxWg1+8YpzJ7Q6jb9FPdqB3JY8p5fWpZpGl8uzMQi52h sCCUjf3JAfjuT1F84Pq/T6977CEUBp4u3e7thVWnjcJxIKdhWI58N0qhdGIsJM/a+Xk8 1d6nD/YGPBJEIftPHqxnp3Zyfnt0GQqslLoOc5bcbGZAo+b7j+AbsCyYq3EqJ0oumx9z oaxxYvGJJKzOaZoFYq5UvgaQvvb1OnqryyhTfvO2J3r5gV+5yQRyA+bZLlnsYNe0fWgW LdTTqNKcODdj9Oi5Rq75S+uxI5YtoYxcC/JAZZzMTWm9hWvBGfGvHRdbcQME1a3EfNY4 +azA== X-Received: by 10.194.248.195 with SMTP id yo3mr5074287wjc.60.1417593143465; Tue, 02 Dec 2014 23:52:23 -0800 (PST) Received: from [193.168.1.23] ([37.39.134.117]) by mx.google.com with ESMTPSA id fk12sm15429112wic.6.2014.12.02.23.52.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Dec 2014 23:52:22 -0800 (PST) Message-ID: <547EC134.4070208@gmail.com> Date: Wed, 03 Dec 2014 10:52:20 +0300 From: abdulrahman Alotaibi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Locale breaks psql Content-Type: multipart/mixed; boundary="------------030004010500040605030908" X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multi-part message in MIME format. --------------030004010500040605030908 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello all, I am using PostgreSQL 9.3.5 on Ubuntu Trusty-64. My machine has LC_* set to en_GB.UTF-8 and I used the attached VagrantFile to create the machine and provision using Ansible. Postgres was installed on seven other machines and kept breaking on two machines. After checking for two days, I found that my colleague's machine had locale set to en_AU.UTF-8 and my machine had locale set to en_GB.UTF-8. I changed both machines to use en_US.UTF-8 as a default locale and it worked. The error I was getting when I ran psql after switching to postgres user was "Server: No such file or directory found" and couldn't connect to socket /var/Pg.5432. Sorry for not having the exact output. Sincerely, Abdulrahman Alotaibi --------------030004010500040605030908 Content-Type: application/x-yaml; name="ansible_deployment.yml" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ansible_deployment.yml" LS0tCgotIGhvc3RzOiBhbGwKCiAgdmFyczoKICAgICAgZGJfbmFtZTogZGph bmdvX2FwcAogICAgICBkYl91c2VyOiBkamFuZ28KICAgICAgZGJfcGFzc3dv cmQ6ICJ7eyBsb29rdXAoJ2VudicsICdEQl9QQVNTV09SRCcpIH19IiAKICB0 YXNrczogCiAgICAtIG5hbWU6IEluc3RhbGxpbmcgUGFja2FnZXMKICAgICAg c3VkbzogeWVzCiAgICAgIGFwdDogcGtnPXt7IGl0ZW0gIH19IHN0YXRlPWlu c3RhbGxlZCB1cGRhdGVfY2FjaGU9eWVzCiAgICAgIHdpdGhfaXRlbXM6CiAg ICAgICAgICAtIG5naW54CiAgICAgICAgICAtIGdpdAogICAgICAgICAgLSBw eXRob24tcGlwCiAgICAgICAgICAtIGxpYnBxLWRldgogICAgICAgICAgLSBw eXRob24tZGV2CiAgICAgICAgICAtIHBvc3RncmVzcWwKICAgICAgICAgIC0g cG9zdGdyZXNxbC1jb250cmliCiAgICAgICAgICAtIHB5dGhvbi12aXJ0dWFs ZW52CiAgICAgICAgICAtIHB5dGhvbi1wc3ljb3BnMgoKICAgIC0gbmFtZTog Q3JlYXRlIERhdGFiYXNlCiAgICAgIHN1ZG86IHllcwogICAgICBzdWRvX3Vz ZXI6IHBvc3RncmVzCiAgICAgIHBvc3RncmVzcWxfZGI6IG5hbWU9e3sgZGJf bmFtZSB9fQoKICAgIC0gbmFtZTogQ3JlYXRlIFVzZXIKICAgICAgc3Vkbzog eWVzCiAgICAgIHN1ZG9fdXNlcjogcG9zdGdyZXMKICAgICAgcG9zdGdyZXNx bF91c2VyOiBuYW1lPXt7IGRiX3VzZXIgfX0gcGFzc3dvcmQ9e3sgZGJfcGFz c3dvcmQgfX0gc3RhdGU9cHJlc2VudCByb2xlX2F0dHJfZmxhZ3M9Tk9TVVBF UlVTRVIsQ1JFQVRFREIKCiAgICAtIG5hbWU6IFByb3ZpZGUgdXNlciB3aXRo IERCIHBlcm1pc3Npb25zCiAgICAgIHN1ZG86IHllcwogICAgICBzdWRvX3Vz ZXI6IHBvc3RncmVzCiAgICAgIHBvc3RncmVzcWxfdXNlcjogdXNlcj17eyBk Yl91c2VyIH19IGRiPXt7IGRiX25hbWUgfX0gcHJpdj1BTEwK --------------030004010500040605030908 Content-Type: text/plain; charset=UTF-8; name="Vagrantfile" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Vagrantfile" VkFHUkFOVEZJTEVfQVBJX1ZFUlNJT04gPSAiMiIKClZhZ3JhbnQuY29uZmln dXJlKFZBR1JBTlRGSUxFX0FQSV9WRVJTSU9OKSBkbyB8Y29uZmlnfAogIGNv bmZpZy52bS5ib3ggPSAiaHR0cHM6Ly9jbG91ZC1pbWFnZXMudWJ1bnR1LmNv bS92YWdyYW50L3RydXN0eS8yMDE0MTIwMi4xL3RydXN0eS1zZXJ2ZXItY2xv dWRpbWctYW1kNjQtdmFncmFudC1kaXNrMS5ib3giCgogIGNvbmZpZy52bS5u ZXR3b3JrICJmb3J3YXJkZWRfcG9ydCIsIGd1ZXN0OiA4MCwgaG9zdDogODAw MAoKICAgY29uZmlnLnNzaC5mb3J3YXJkX2FnZW50ID0gdHJ1ZQoKICBjb25m aWcudm0ucHJvdmlzaW9uICJhbnNpYmxlIiwgcGxheWJvb2s6ICJhbnNpYmxl X2RlcGxveW1lbnQueW1sIgplbmQK --------------030004010500040605030908 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --------------030004010500040605030908--