Re: AppendStringInfoChar instead of appendStringInfoString - Mailing list pgsql-hackers

From Justin Pryzby
Subject Re: AppendStringInfoChar instead of appendStringInfoString
Date
Msg-id 20200927183751.GA8476@telsasoft.com
Whole thread Raw
In response to AppendStringInfoChar instead of appendStringInfoString  ("Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>)
Responses Re: AppendStringInfoChar instead of appendStringInfoString  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
On Fri, Sep 25, 2020 at 08:49:57AM +0000, Hou, Zhijie wrote:
> In (/src/backend/replication/backup_manifest.c)
> 
> I found the following code:
> 
>     appendStringInfoString(&buf, "\n");
>     appendStringInfoString(&buf, "\"");

Good point.  There's another one:

$ git grep -E 'appendStringInfoString.*".{,1}");'
src/backend/utils/adt/ruleutils.c:      appendStringInfoString(buf, "(");

I noticed you added a similar thread here.
https://commitfest.postgresql.org/30/

I think this one could be combined as a single patchset with the existing CF
entry for the other thread.

https://www.postgresql.org/message-id/flat/cb172cf4361e4c7ba7167429070979d4%40G08CNEXMBPEKD05.g08.fujitsu.local
https://www.postgresql.org/message-id/ce9a8564ccf1435eacf14bb7364ae9de%40G08CNEXMBPEKD05.g08.fujitsu.local

-- 
Justin



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fwd: Extending range type operators to cope with elements
Next
From: Andy Fan
Date:
Subject: Partition prune with stable Expr