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@postgresql.org
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026