Re: Count output lines automatically in psql/help.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Count output lines automatically in psql/help.c
Дата
Msg-id 202206041618.2serkebdcmrz@alvherre.pgsql
обсуждение исходный текст
Ответ на Count output lines automatically in psql/help.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Count output lines automatically in psql/help.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Count output lines automatically in psql/help.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Count output lines automatically in psql/help.c