Re: [WIP] plpgsql is not translate-aware

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [WIP] plpgsql is not translate-aware
Дата
Msg-id 20081008235310.GK4164@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [WIP] plpgsql is not translate-aware  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [WIP] plpgsql is not translate-aware  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: [WIP] plpgsql is not translate-aware  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:

> Another way, which would save some amount of string constant space,
> is to have both elog_finish and the ereport macro pass NULL, and let
> errstart insert the default:
>
> > +     edata->domain = domain ? domain : "postgres";
>
> Otherwise we'll have at least one copy of "postgres" per backend .o
> file ...

Hmm, true.  I think this means we need to redefine ereport(), not just
TEXTDOMAIN, in each module (in fact it makes TEXTDOMAIN goes away as a
symbol).  Same number of lines on each module though, so it's not a
considerable difference.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: WITH RECURSIVE ... simplified syntax?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [WIP] plpgsql is not translate-aware