Re: pg_dump and transactions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ferdinand Smit <ferdinand(at)telegraafnet(dot)nl>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: pg_dump and transactions
Date: 2002-03-21 16:43:43
Message-ID: 27964.1016729023@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Ferdinand Smit <ferdinand(at)telegraafnet(dot)nl> writes:
> We have lots of trouble with using the COPY dump, so we always use de INSERT
> mode. Because the INSERT mode does'nt use transactions, this methode is very
> slow.

What would really be appreciated is some investigation into why the COPY
mode doesn't work for you. I prefer to fix problems rather than work
around them.

> This (simple) patch creates (if the -T flag is set) a transaction of every
> insert block, so de import is mostly 10 times faster.

... kinda seems like a kluge ...

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Thomas Lockhart 2002-03-21 16:58:53 Re: pg_dump and transactions
Previous Message Fernando Nasser 2002-03-21 16:22:57 Re: Domain Support -- another round