Skip site navigation (1) Skip section navigation (2)

Re: pg_dump and transactions

From: Bruce Momjian <pgman(at)candle(dot)pha(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 14:43:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
Can you explain the COPY troubles you have had.  Seems like a problem.

What about this patch which batches INSERTS into transaction blocks?
Seems if you are worried about performance, you should be using COPY.  I
am not inclined to apply it but rather find out why COPY isn't working
for this person.


Ferdinand Smit wrote:
> Hi,
> 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.
> This (simple) patch creates (if the -T flag is set) a transaction of every 
> insert block, so de import is mostly 10 times faster.
> I hope you like it.
> Regards,
> Ferdinand

[ Attachment, skipping... ]

> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to


pgsql-patches by date

Next:From: Rod TaylorDate: 2002-03-21 15:03:20
Subject: Re: Domain Support -- another round
Previous:From: Ferdinand SmitDate: 2002-03-21 10:33:34
Subject: pg_dump and transactions

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group