pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Craig Ringer <ringerc@ringerc.id.au>
Cc: Carlo Curatolo <genamiga@brutele.be>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5800: "corrupted" error messages (encoding problem ?)
Date: Fri, 16 Sep 2011 20:34:28 -0400
Message-ID: <16424.1316219668@sss.pgh.pa.us> (raw)
In-Reply-To: <4E73E757.8050006@ringerc.id.au>
References: <201012211547.oBLFl3qC019008@wwwmaster.postgresql.org>
	<1303986662099-4346180.post@n5.nabble.com>
	<BANLkTimgLSW=ykLYNvYTmQpFT2aJnnfZfQ@mail.gmail.com>
	<1316207412940-4812062.post@n5.nabble.com>
	<4E73E757.8050006@ringerc.id.au>

Craig Ringer <ringerc@ringerc.id.au> writes:
> On 09/17/2011 05:10 AM, Carlo Curatolo wrote:
>> Just tried with PG 9.1...same problem...

> Yep. There appears to be no interest in fixing this bug. All the 
> alternatives I proposed were rejected, and there doesn't seem to be any 
> concern about the issue.

The problem is to find a cure that's not worse than the disease.
I'm not exactly convinced that forcing all log messages into a common
encoding is a better behavior than allowing backends to log in their
native database encoding.

If you do want a common encoding, there's a very easy way to get it, ie,
standardize on one encoding for all your databases.  People who aren't
doing that already probably have good reasons why they want to stay with
the encoding choices they've made; forcing their logs into some other
encoding isn't necessarily going to improve their lives.

> ... The only valid fixes are to log them to different files (with some 
> way to identify which encoding is used)

I don't recall having heard any serious discussion of such a design, but
perhaps doing that would satisfy some use-cases.  One idea that comes to
mind is to provide a %-escape for log_filename that expands to the name
of the database encoding (or more likely, some suitable abbrevation).
The logging collector protocol would have to be expanded to include that
information, but that seems do-able.

			regards, tom lane



view thread (21+ messages)  latest in thread

Message-ID: <16424.1316219668@sss.pgh.pa.us>
Permalink:  ../16424.1316219668@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16424.1316219668@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ringerc@ringerc.id.au, genamiga@brutele.be
  Subject: Re: BUG #5800: "corrupted" error messages (encoding problem ?)
  In-Reply-To: <16424.1316219668@sss.pgh.pa.us>
  References: <201012211547.oBLFl3qC019008@wwwmaster.postgresql.org> <1303986662099-4346180.post@n5.nabble.com> <BANLkTimgLSW=ykLYNvYTmQpFT2aJnnfZfQ@mail.gmail.com> <1316207412940-4812062.post@n5.nabble.com> <4E73E757.8050006@ringerc.id.au> <16424.1316219668@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