Re: general questions postgresql performance config

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: general questions postgresql performance config
Date: 2010-01-26 16:42:27
Message-ID: 4B5F1B73.2010405@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/25/2010 8:12 PM, Craig Ringer wrote:
> On 26/01/2010 12:15 AM, Dino Vliet wrote:
>
>> 5) Other considerations?
>
>
> Even better is to use COPY to load large chunks of data. libpq provides
> access to the COPY interface if you feel like some C coding. The JDBC
> driver (dev version only so far) now provides access to the COPY API, so
> you can also bulk-load via Java very efficiently now.
>
> --
> Craig Ringer
>

I recall seeing someplace that you can avoid WAL if you start a
transaction, then truncate the table, then start a COPY.

Is that correct? Still hold true? Would it make a lot of difference?

(Also, small plug, perl supports the COPY api too)

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-01-26 16:48:02 Re: Make & Install contrib/tablefunc Problems
Previous Message S Arvind 2010-01-26 16:15:47 Re: Postgres Host