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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Count output lines automatically in psql/help.c
Дата
Msg-id b0957499-7e28-9038-71c5-4f4c270a5cb6@enterprisedb.com
обсуждение исходный текст
Ответ на 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 03.06.22 22:51, Tom Lane wrote:
> +    HELP0("  -c, --command=COMMAND    run only single command (SQL or internal) and exit\n");
> +    HELP("  -d, --dbname=DBNAME      database name to connect to (default: \"%s\")\n",
> +         env);

I wonder whether this mix of HELP0 and HELP is necessary.  The original 
code didn't care about calling fprintf even if there are no 
substitutions.  I think this could lead to misalignment errors.  I 
vaguely recall we once had mixes of fprintf and fputs and got rid of 
them for this reason.




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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: A proposal to force-drop replication slots to make disabling async/sync standbys or logical replication faster in production environments
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: [PATCH] psql: \dn+ to show size of each schema (and \dA+ for AMs)