On 2022-Jun-03, Tom Lane wrote:
> So, attached is a patch to remove that maintenance chore by
> constructing the output in a PQExpBuffer and then counting the
> lines automatically. While I was at it, I introduced a couple of
> macros to make the code shorter rather than longer.
What about adding stringInfoCountLines or something like that?
--
Álvaro Herrera