From: | Chris Albertson <chrisalbertson90278(at)yahoo(dot)com> |
---|---|
To: | Elielson Fontanezi <ElielsonF(at)prodam(dot)sp(dot)gov(dot)br>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Cc: | pgsql-sql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: 1 milion data insertion |
Date: | 2002-07-26 19:15:06 |
Message-ID: | 20020726191506.98245.qmail@web14706.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
>
> Ok, this was a test. I'd like to know what would be happen.
> But, from you, great PostGres DBA's, what is the best way to
> insert a large number of data?
> Is there a way to turn off the log?
> Is there a way to commit each 100 records?
Yes, "COPY" actually does an append. So just do what you
do now 10,000 times for 100 records. It's a bit safer.
I've done 1M recod COPYsmany times on a low-end PC, no trouble
Put the log file someplace with more room. You should be able to
run for a month without worrying about log files over filling
Logging is controled likely from the startup script. Maybe in
/etc/rc.d details depend on your OS.
=====
Chris Albertson
Home: 310-376-1029 chrisalbertson90278(at)yahoo(dot)com
Cell: 310-990-7550
Office: 310-336-5189 Christopher(dot)J(dot)Albertson(at)aero(dot)org
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Clift | 2002-07-26 19:15:52 | Re: [GENERAL] The best book |
Previous Message | Chris Albertson | 2002-07-26 19:07:44 | Re: Advice on geolocation |
From | Date | Subject | |
---|---|---|---|
Next Message | Roberto Mello | 2002-07-26 21:45:36 | Re: Function using more than one database |
Previous Message | Andrew Sullivan | 2002-07-26 18:46:55 | Re: 1 milion data insertion |