pgsql: Make psql's \sf and \ef honor ECHO_HIDDEN.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make psql's \sf and \ef honor ECHO_HIDDEN.
Date: 2014-11-21 17:21:41
Message-ID: E1Xrrtt-0005XW-DN@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make psql's \sf and \ef honor ECHO_HIDDEN.

These commands were calling the database direct rather than calling
PSQLexec like other slash commands that needed database data.

The code is also changed not to pass the connection as a parameter to
the helper functions. It's available in a global variable, and that's
what PSQLexec uses.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e4d28175a13d47a747b33e87c0f808b2ef57c0cd

Modified Files
--------------
src/bin/psql/command.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2014-11-21 17:41:36 pgsql: Fix an error in psql that overcounted output lines.
Previous Message Heikki Linnakangas 2014-11-21 13:18:27 pgsql: No need to call XLogEnsureRecordSpace when the relation is unlog