Re: [HACKERS] GCC 7 warnings

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] GCC 7 warnings
Дата
Msg-id 20170411175708.coshtfzejgaqhar2@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [HACKERS] GCC 7 warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] GCC 7 warnings
Список pgsql-hackers
Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

> > d) Replace most of the problematic code with psprintf() and dynamically
> > sized buffers.
> 
> +1 for (c) as you have it.  Later we might think about selectively
> doing (d), but it seems like more work for probably not much benefit.

Yeah -- also it's possible some of these code paths must not attempt to
palloc() for robustness reasons.  I would go for c) only for now, and
only try d) for very specific cases where there are no such concerns.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Possible problem in Custom Scan API
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] TAP tests take a long time