Re: Count output lines automatically in psql/help.c
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-06-10T11:50:37Z
Lists: pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes: > 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. In the committed patch, I changed HELP to HELPN exactly so that the strings would still line up. regards, tom lane
Commits
-
Automatically count the number of output lines in psql/help.c.
- f00a4f02ac2e 15.0 landed