Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XW98U-0006qO-SZ for pgsql-admin@arkaria.postgresql.org; Mon, 22 Sep 2014 19:18:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XW98U-00066j-B5 for pgsql-admin@arkaria.postgresql.org; Mon, 22 Sep 2014 19:18:58 +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 1XW98S-000641-U1 for pgsql-admin@postgresql.org; Mon, 22 Sep 2014 19:18:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XW98P-0006ft-Pq for pgsql-admin@postgresql.org; Mon, 22 Sep 2014 19:18:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s8MJIm7c019215; Mon, 22 Sep 2014 15:18:48 -0400 From: Tom Lane To: Peter Eisentraut cc: jayknowsunix@gmail.com, "pgsql-admin@postgresql.org" Subject: Re: Missing locale files according to psql In-reply-to: <54206BCF.2040406@gmx.net> References: <541C7CF3.2070204@gmail.com> <5420650D.3090500@gmx.net> <54206BCF.2040406@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Mon, 22 Sep 2014 14:34:55 -0400" Date: Mon, 22 Sep 2014 15:18:48 -0400 Message-ID: <19214.1411413528@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Peter Eisentraut writes: > On 9/22/14 2:08 PM, jayknowsunix@gmail.com wrote: >> Ok, enough, but if they're not included in the PostgreSQL rpm, why does psql look for them? > This is how locales work, independent of PostgreSQL or psql. You set a > locale in the environment, the operating system looks if locale > information files are installed, and if not in proceeds with a fallback. Perhaps more to the point: there is a defined search path that libc is supposed to follow when looking to see if there is a messages file for the application. It does not know in advance whether the app has a messages file or exactly where in the path it'll be located. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin