Re: Improve a few appendStringInfo calls new to v18

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Improve a few appendStringInfo calls new to v18
Дата
Msg-id 622146cf-cc48-4b4e-b9cd-3cc53dbf997e@eisentraut.org
обсуждение исходный текст
Ответ на Improve a few appendStringInfo calls new to v18  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: Improve a few appendStringInfo calls new to v18
Список pgsql-hackers
On 10.04.25 05:51, David Rowley wrote:
> Looks like v18 has grown a few appendStringInfo misusages, e.g. using
> appendStringInfo() when no formatting is needed or just using format
> "%s" instead of using appendStringInfoString().

Would it be useful to augment appendStringInfo() something like this:

if (VA_ARGS_NARGS() == 0)
     return appendStringInfoString(str, fmt);

?




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