Re: Use appendStringInfoSpaces more

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Use appendStringInfoSpaces more
Date: 2023-01-20 00:09:44
Message-ID: CAApHDvpO9ucjy3cp9wyf0bhc6b5nauJMEEaWWVyK7yqJdnDicw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 20 Jan 2023 at 10:23, Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
> Should the add_indent function also have a check to avoid making
> unnecessary calls to appendStringInfoSpaces when the level is 0?

Although I didn't opt to do that, thank you for having a look.

I do think the patch is trivially simple and nobody seems against it,
so I've now pushed it.

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2023-01-20 00:17:00 Re: Decoupling antiwraparound autovacuum from special rules around auto cancellation
Previous Message Greg Stark 2023-01-19 23:44:22 Re: Experiments with Postgres and SSL