Re: Error message translation, with variable reason text

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Error message translation, with variable reason text
Date: 2009-12-06 16:51:20
Message-ID: 24826.1260118280@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> The purpose of this is to give an LOG message with a variable reason
> code. Should I worry about the translatability of something that exists
> for DEBUG,

Probably not. I don't even think you should use ereport, just elog
--- or if there's a good functional reason to use ereport, use
errmsg_internal so that translators don't see this message.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2009-12-06 17:04:10 Re: A sniffer for the buffer
Previous Message Simon Riggs 2009-12-06 16:18:55 Re: Hot standby, recent changes