Re: appendStringInfo vs appendStringInfoString

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: appendStringInfo vs appendStringInfoString
Date: 2013-10-30 13:52:05
Message-ID: 20131030135204.GA5922@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas escribió:
> On Wed, Oct 30, 2013 at 4:51 AM, David Rowley <dgrowleyml(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2013-10-30 13:53:24 Re: Fast insertion indexes: why no developments
Previous Message Tom Lane 2013-10-30 13:49:26 Re: Something fishy happening on frogmouth