I have an ereport() in the HS patch that looks like this ereport(trace_recovery(DEBUG1),
(errmsg("recoverycancels virtual transaction %u/%u pid %d because of conflict with %s", waitlist->backendId,
waitlist->localTransactionId, pid, reason)));
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, and if so, what is the best/approved/recommended way of
making a message both translatable and variable?
Thanks,
-- Simon Riggs www.2ndQuadrant.com
Simon Riggs <simon@2ndQuadrant.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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера