Re: appendStringInfo vs appendStringInfoString

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, David Rowley <dgrowleyml(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: appendStringInfo vs appendStringInfoString
Date: 2013-10-31 02:29:18
Message-ID: CA+TgmoZY2B-=RSegcwZkqAZVwMT0rjW=9n+zZ5XosPBedpKvVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 30, 2013 at 12:12 PM, Alvaro Herrera
<alvherre(at)2ndquadrant(dot)com> wrote:
> 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(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.
>>
>> 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.

So, does that mean we're good to go?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2013-10-31 03:28:11 Re: Long paths for tablespace leads to uninterruptible hang in Windows
Previous Message Robert Haas 2013-10-31 02:28:53 Re: Something fishy happening on frogmouth