pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Cory Nemelka <cnemelka@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Issues with inconsistent COLLATION installation
Date: Mon, 09 Sep 2019 17:08:29 -0400
Message-ID: <5178.1568063309@sss.pgh.pa.us> (raw)
In-Reply-To: <0df13b3e-cc8b-41b7-ab78-487315a28a59@manitou-mail.org>
References: <0df13b3e-cc8b-41b7-ab78-487315a28a59@manitou-mail.org>

"Daniel Verite" <daniel@manitou-mail.org> writes:
> I can reproduce this by creating a new locale *after* starting
> PostgreSQL and trying to use it before a restart.

That is interesting.  I think it must mean that glibc's setlocale()
and newlocale() maintain some kind of internal cache about available
locales ... and there's no logic to flush it if /usr/share/locale
changes.  The individual backends are probably inheriting the cache
state via fork from the postmaster.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <5178.1568063309@sss.pgh.pa.us>
Permalink:  ../5178.1568063309@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5178.1568063309@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel@manitou-mail.org, cnemelka@gmail.com
  Subject: Re: Issues with inconsistent COLLATION installation
  In-Reply-To: <5178.1568063309@sss.pgh.pa.us>
  References: <0df13b3e-cc8b-41b7-ab78-487315a28a59@manitou-mail.org> <5178.1568063309@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox