Re: How to suppress echo while executing batch files?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: matthias(at)cmklein(dot)de
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to suppress echo while executing batch files?
Date: 2004-11-17 01:27:46
Message-ID: 20041117012746.GA45169@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 17, 2004 at 02:17:16AM +0100, matthias(at)cmklein(dot)de wrote:

> I have to execute fairly large batch files (200-300MB) with several million
> INSERT commands.

Can these files be rewritten to use COPY instead of INSERT?
Performance might improve.

> When I do that from pgsql using the \i switch, I get the echo
> INSERT 0 1
>
> for every single insert statement of my batch file.
>
> Since I assume that this slows down the whole process I would like to know
> if there is a way to suppress that echo and only get error messages and
> such?

\set QUIET

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Harvey, Allan AC 2004-11-17 01:41:20 Re: table configuration tweak for performance gain.
Previous Message Tatsuo Ishii 2004-11-17 01:25:21 Re: Problems importing Unicode