pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.pl>
To: pgsql-interfaces@postgresql.org
Subject: how to get rid of "NOTICE"'s in psql?
Date: Mon, 30 Oct 2000 11:53:15 +0100
Message-ID: <20001030115315.A30791@gruby> (raw)

hi,
i'm using psql while developing software.
i have several .sql scripts which i run via \i script.sql
most of them spill out a lot of "NOTICE" lines. like:

psql:create.structure.sql:17: NOTICE:  CREATE TABLE/PRIMARY KEY will create
implicit index 'articles_pkey' for table 'articles'
CREATE
psql:create.structure.sql:23: NOTICE:  CREATE TABLE/PRIMARY KEY will create
implicit index 'kolejnosc_pkey' for table 'kolejnosc'
psql:create.structure.sql:23: NOTICE:  CREATE TABLE will create implicit
trigger(s) for FOREIGN KEY check(s)
CREATE

i want to make psql *not* show any NOTICES - just plain information like
"CREATE", "INSERT", "COMMIT" and of course ERROR messages.

is there any way (besides recompiling psql with simple "if") to do what i need?

depesz

-- 
hubert depesz lubaczewski
------------------------------------------------------------------------
     najwspanialszą rzeczą jaką dało nam nowoczesne społeczeństwo,
      jest niesamowita wręcz łatwość unikania kontaktów z nim ...




view thread (3+ messages)  latest in thread

Message-ID: <20001030115315.A30791@gruby>
Permalink:  ../20001030115315.A30791@gruby/
Also on:    postgresql.org/message-id/20001030115315.A30791@gruby

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: depesz@depesz.pl
  Subject: Re: how to get rid of "NOTICE"'s in psql?
  In-Reply-To: <20001030115315.A30791@gruby>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox