Re: Fixup some appendStringInfo and appendPQExpBuffer calls
От
Peter Eisentraut
Тема
Re: Fixup some appendStringInfo and appendPQExpBuffer calls
Дата
Msg-id
26903d83-974a-08d3-3b84-7707cd41c922@enterprisedb.com
Ответ на
Re: Fixup some appendStringInfo and appendPQExpBuffer calls (Alvaro Herrera)
Список
Дерево обсуждения
Fixup some appendStringInfo and appendPQExpBuffer calls "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Michael Paquier <michael@paquier.xyz>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls David Rowley <dgrowleyml@gmail.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Tom Lane <tgl@sss.pgh.pa.us>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Michael Paquier <michael@paquier.xyz>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls David Rowley <dgrowleyml@gmail.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls David Rowley <dgrowleyml@gmail.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Tom Lane <tgl@sss.pgh.pa.us>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls David Rowley <dgrowleyml@gmail.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls David Rowley <dgrowleyml@gmail.com>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls Tom Lane <tgl@sss.pgh.pa.us>
Re: Fixup some appendStringInfo and appendPQExpBuffer calls David Rowley <dgrowleyml@gmail.com>
On 02.06.21 12:57, Alvaro Herrera wrote: >> In the latest HEAD branch, I found some places were using >> appendStringInfo/appendPQExpBuffer() when they could have been using >> appendStringInfoString/ appendPQExpBufferStr() instead. I think we'd better >> fix these places in case other developers will use these codes as a reference, >> though, it seems will not bring noticeable performance gain. > > hmm why didn't we get warnings about the PENDING DETACH one? Maybe we > need some decorator in PQExpBuffer. I don't think there is anything wrong with the existing code there. It's just like using printf() when you could use puts(). (I'm not against the proposed patch, just answering this question.)
В списке pgsql-hackers по дате отправления
От: Matthias van de Meent
Дата: