[Pkg-postgresql-public] Bug#671915: postgresql breaks logs

Christoph Berg myon at debian.org
Mon Apr 29 15:11:27 UTC 2013


Control: tags -1 confirmed

Re: Dmitry E. Oboukhov 2012-05-08 <20120508055141.GA25797 at apache.rbscorp.ru>
> Package: postgresql-9.1
> Version: 9.1.3-2
> Tags: l10n
> 
> Since (I think) I've upgraded postgresql server upto 9.1 version I see
> broken logs. The previous versions of Pg wrote logs in English.
> Current version writes part of logs in Russian and part in '?'
> symbols:

The problem here is that pg_ctlcluster initializes the environment
from /etc/postgresql/9.1/main/environment, which is usually empty. If
you don't have any LANG/LC_* settings in the environment, postgres
will log any non-ascii char as ?.

We should probably copy the LANG/LC_* settings from the old
environment over, or put "LANG=$clusterlocale" in the enviroment
files (or both).

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/



More information about the Pkg-postgresql-public mailing list