Re: appendStringInfo vs appendStringInfoString

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: appendStringInfo vs appendStringInfoString
Дата
Msg-id 20131030135204.GA5922@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: appendStringInfo vs appendStringInfoString  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: appendStringInfo vs appendStringInfoString  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Robert Haas escribió:
> On Wed, Oct 30, 2013 at 4:51 AM, David Rowley <dgrowleyml@gmail.com> wrote:
> > I've attached a re-based version of this.
> 
> I don't see any compelling reason not to commit this.  Does anyone
> wish to object?

I think a blanket substitution of places that currently have %s might
cause bugs, particularly if the string is user-supplied.  It might be
right for many cases, but did you/someone review each such callsite?

No objection to the other half, that substitute calls that don't have
%s.

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



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Something fishy happening on frogmouth
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Fast insertion indexes: why no developments