Re: Align memory context level numbering in pg_log_backend_memory_contexts() - Mailing list pgsql-hackers

From Melih Mutlu
Subject Re: Align memory context level numbering in pg_log_backend_memory_contexts()
Date
Msg-id CAGPVpCSuZuhrevxCDcbFMLXfHyxk2Nz5AXbAE1ReTL5+_f+fxw@mail.gmail.com
Whole thread Raw
In response to Re: Align memory context level numbering in pg_log_backend_memory_contexts()  (torikoshia <torikoshia@oss.nttdata.com>)
List pgsql-hackers
Hi,

torikoshia <torikoshia@oss.nttdata.com>, 17 Nis 2025 Per, 12:35 tarihinde şunu yazdı:
I guess few people would notice this difference, but I think it's better
to avoid changing it unless there's a good reason to do so.
Personally, I also feel the original formatting better -- especially
because the "xx more child contexts..." line is aligned with the other
child contexts at the same level.

Attached a v2 patch to restore the original indentation.
What do you think?

Thanks for noticing the issue. I also agree with you all about using 1-based levels consistently in memory context outputs including pg_log_backend_memory_contexts.

I reviewed and tested the v2 patch and LGTM.

Regards,
--
Melih

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: pg_dump: Fix dangling pointer in EndCompressorZstd()
Next
From: Konstantin Knizhnik
Date:
Subject: Re: Changing shared_buffers without restart