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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Count output lines automatically in psql/help.c
Дата
Msg-id 573743.1654361819@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Count output lines automatically in psql/help.c  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> What about adding stringInfoCountLines or something like that?

If we have other use-cases, maybe that'd be worthwhile.

(In the committed patch, I dumbed it down to a plain per-char
loop without the strchr() complication.  So it's very little code.
I'm not real sure that strchr would make it faster.)

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Count output lines automatically in psql/help.c
Следующее
От: Phil Florent
Дата:
Сообщение: Error from the foreign RDBMS on a foreign table I have no privilege on