Re: 1 milion data insertion - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: 1 milion data insertion
Date
Msg-id 20020726144655.K18001@mail.libertyrms.com
Whole thread Raw
In response to 1 milion data insertion  (Elielson Fontanezi <ElielsonF@prodam.sp.gov.br>)
List pgsql-general
On Fri, Jul 26, 2002 at 03:34:12PM -0300, Elielson Fontanezi wrote:
>
> the log has overflowed.

No, new WAL files were created.  You can increase the number of
preallocated WAL files so that you don't get these messages.  See the
administrator docs.

>     But, from you, great PostGres DBA's, what is the best way to
> insert a large number of data?

With COPY, just as you did.

>     Is there a way to turn off the log?

No.

>     Is there a way to commit each 100 records?

Sure.  Use Perl or something to copy and commit every so many records.
A

----
Andrew Sullivan                               87 Mowat Avenue
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110


pgsql-general by date:

Previous
From: Elielson Fontanezi
Date:
Subject: 1 milion data insertion
Next
From: Elielson Fontanezi
Date:
Subject: The best book