1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Tweak psql to print row counts when \x auto chooses non-expanded output.

Noah Misch
This commit is contained in:
Robert Haas
2012-05-01 16:03:45 -04:00
parent f2f9439fbf
commit 9b7a84f2a4
5 changed files with 62 additions and 30 deletions

View File

@ -2407,12 +2407,12 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
else if (strcmp(param, "footer") == 0)
{
if (value)
popt->default_footer = ParseVariableBool(value);
popt->topt.default_footer = ParseVariableBool(value);
else
popt->default_footer = !popt->default_footer;
popt->topt.default_footer = !popt->topt.default_footer;
if (!quiet)
{
if (popt->default_footer)
if (popt->topt.default_footer)
puts(_("Default footer is on."));
else
puts(_("Default footer is off."));