pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Albertson <chrisalbertson90278@yahoo.com>
To: Elielson Fontanezi <ElielsonF@prodam.sp.gov.br>
To: pgsql-general <pgsql-general@postgresql.org>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: 1 milion data insertion
Date: Fri, 26 Jul 2002 12:15:06 -0700 (PDT)
Message-ID: <20020726191506.98245.qmail@web14706.mail.yahoo.com> (raw)
In-Reply-To: <A799F7647794D311924A005004ACEA97080DDEC4@cprodamibs249.prodam>


> 	
> 	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



view thread (4+ messages)

Message-ID: <20020726191506.98245.qmail@web14706.mail.yahoo.com>
Permalink:  ../20020726191506.98245.qmail@web14706.mail.yahoo.com/
Also on:    postgresql.org/message-id/20020726191506.98245.qmail@web14706.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: chrisalbertson90278@yahoo.com, ElielsonF@prodam.sp.gov.br, pgsql-general@postgresql.org
  Subject: Re: 1 milion data insertion
  In-Reply-To: <20020726191506.98245.qmail@web14706.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox