From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: 1 milion data insertion
Date: Fri, 26 Jul 2002 14:46:55 -0400
Message-ID: <20020726144655.K18001@mail.libertyrms.com> (raw)
In-Reply-To: <A799F7647794D311924A005004ACEA97080DDEC4@cprodamibs249.prodam>
References: <A799F7647794D311924A005004ACEA97080DDEC4@cprodamibs249.prodam>
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
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: andrew@libertyrms.info, pgsql-general@postgresql.org
Subject: Re: 1 milion data insertion
In-Reply-To: <20020726144655.K18001@mail.libertyrms.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