psql
有一个-q
/--quiet
选项(环境变量QUIET
)。 pg_restore
没有安静的选择。有什么方法可以pg_restore
不详细地显示它正在执行的 SQL 命令吗?
# e.g., here's the verbose output that I don't want to see:
$ pg_restore --cluster 8.4/mycluster mycluster.dump
---- PostgreSQL database dump
--
SET statement_timeout = 0;SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;SET check_function_bodies = false;
...
--
-- Name: data_src; Type: TABLE; Schema: public; Owner: postgres; Tablespace:--
CREATE TABLE data_src (
...