Re: Use appendStringInfoSpaces more - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Use appendStringInfoSpaces more
Date
Msg-id 207775.1674163543@sss.pgh.pa.us
Whole thread Raw
In response to Re: Use appendStringInfoSpaces more  (Peter Smith <smithpb2250@gmail.com>)
Responses Re: Use appendStringInfoSpaces more
List pgsql-hackers
Peter Smith <smithpb2250@gmail.com> writes:
> Should the add_indent function also have a check to avoid making
> unnecessary calls to appendStringInfoSpaces when the level is 0?

Seems like unnecessary extra notation, seeing that appendStringInfoSpaces
will fall out quickly for a zero argument.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Use appendStringInfoSpaces more
Next
From: Melanie Plageman
Date:
Subject: Re: pg_stat_bgwriter.buffers_backend is pretty meaningless (and more?)