dbTalk Databases Forums  

How to suppress echo while executing batch files?

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss How to suppress echo while executing batch files? in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
matthias@cmklein.de
 
Posts: n/a

Default How to suppress echo while executing batch files? - 11-16-2004 , 07:17 PM






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

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?

Thanks

Matt

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #2  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: How to suppress echo while executing batch files? - 11-16-2004 , 07:27 PM






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

Quote:
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.

Quote:
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/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.