Re: [GENERAL] 1 milion data insertion

Поиск
Список
Период
Сортировка
От Chris Albertson
Тема Re: [GENERAL] 1 milion data insertion
Дата
Msg-id 20020726191506.98245.qmail@web14706.mail.yahoo.com
обсуждение исходный текст
Ответ на 1 milion data insertion  (Elielson Fontanezi <ElielsonF@prodam.sp.gov.br>)
Список 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@yahoo.com
  Cell:   310-990-7550
  Office: 310-336-5189  Christopher.J.Albertson@aero.org

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

В списке pgsql-sql по дате отправления:

Предыдущее
От: Elielson Fontanezi
Дата:
Сообщение: RES: RES: [GENERAL] set DateStyle to 'SQL'
Следующее
От: Thiemo Kellner
Дата:
Сообщение: Alter column