psql
में -q
/--quiet
विकल्प (पर्यावरण चर QUIET
) है। pg_restore
में कोई शांत विकल्प नहीं है। pg_restore
बनाने के लिए कोई तरीका है क्या यह निष्पादित SQL आदेशों को वर्बोज़ली से नहीं दिखाता है?क्या "psql --quiet" जैसे "pg_restore --quiet" विकल्प है?
# 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 (
...
आप आउटपुट को '/ dev/nul' पर रीडायरेक्ट क्यों नहीं करते हैं? –
मैं आउटपुट को/dev/null पर रीडायरेक्ट नहीं करना चाहता क्योंकि मैं कोई संभावित त्रुटि संदेश खोना नहीं चाहता हूं। वे शायद stderr पर जायेंगे, तो मैं सिर्फ stdout को/dev/null पर रीडायरेक्ट कर सकता हूं, लेकिन मुझे कुछ बेहतर विचार पसंद है। मुझे कुछ सूचनात्मक आउटपुट देखने में कोई फर्क नहीं पड़ता, लेकिन हर एसक्यूएल कमांड नहीं। –