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 ( ...