Re: appendStringInfo vs appendStringInfoString - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: appendStringInfo vs appendStringInfoString
Date
Msg-id 20131030161218.GD5922@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: appendStringInfo vs appendStringInfoString  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: appendStringInfo vs appendStringInfoString  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Andres Freund escribió:
> On 2013-10-30 10:52:05 -0300, Alvaro Herrera wrote:
> > 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.
> 
> appendStringInfoString() doesn't expand format strings, so I am not sure
> what you're worried about?

Um.  Blame my lack of decent breakfast this morning.

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



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Fast insertion indexes: why no developments
Next
From: Alvaro Herrera
Date:
Subject: Re: How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?