By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,708 Members | 2,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,708 IT Pros & Developers. It's quick & easy.

How to suppress echo while executing batch files?

P: n/a
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

Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Wed, Nov 17, 2004 at 02:17:16AM +0100, ma******@cmklein.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/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.