Re: bug in GUC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bug in GUC
Дата
Msg-id 13534.1088085728@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bug in GUC  ("Thomas Hallgren" <thhal@mailblocks.com>)
Список pgsql-hackers
"Thomas Hallgren" <thhal@mailblocks.com> writes:
> Rather than clutter the code with the same ereport over and over again (I
> count 12 malloc's in guc.c alone), I'd like something like this:

The larger question is why it contains even one.  In general, use of
malloc in the backend is the mark of a newbie.  I'd think palloc in
TopMemoryContext would be a more suitable approach.
        regards, tom lane


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: warning missing
Следующее
От: "Jeroen T. Vermeulen"
Дата:
Сообщение: Re: PREPARE and transactions