Re: Improve a few appendStringInfo calls new to v18 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Improve a few appendStringInfo calls new to v18
Date
Msg-id 832477.1744379118@sss.pgh.pa.us
Whole thread Raw
In response to Re: Improve a few appendStringInfo calls new to v18  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
Peter Eisentraut <peter@eisentraut.org> writes:
> Would it be useful to augment appendStringInfo() something like this:

> if (VA_ARGS_NARGS() == 0)
>      return appendStringInfoString(str, fmt);

That would change the behavior in edge cases, for instance
appendStringInfo(str, "foo%%bar").  Maybe we'd never hit those,
but on the whole I'm not in love with the idea.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Correct documentation for protocol version
Next
From: Andres Freund
Date:
Subject: Re: Regression test fails when 1) old PG is installed and 2) meson/ninja build is used