How do I stop psql from displaying executed SQL?
There are two methods that can cause the query to be echoed.


With psql -E (or \set ECHO_HIDDEN) the queries that psql executes with client commands \command are echoed back at you. You can see if this is set by running \set and looking for ECHO_HIDDEN. If set, you should try running without -E, not setting the option yourself, and making sure it's not set in the ~/.psqlrc. If set the query will look like this above every client command

********* QUERY **********
query
**************************

If you see LOG:  statement:, you may have awkward configurations on the server, like

client_min_messages='LOG';
log_statement='all';


See the docs on Error Reporting and Logging for more information. You should check,

SHOW client_min_messages;
SHOW log_statement;


If set, this is an indicator that someone opened up the server-configuration file and wanted more logging but didn't know what they were doing.


In your case you have LOG:  statement: so check the server settings.