469,964 Members | 1,654 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

How to suppress echo while executing batch files?

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
1 5203
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.

Similar topics

15 posts views Thread by (Pete Cresswell) | last post: by
2 posts views Thread by Pratibha | last post: by
4 posts views Thread by K Viltersten | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.