| From: | Cédric Villemain <cedric(dot)villemain(at)dalibo(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Subject: | Re: pg_dump and insert multi-rows option |
| Date: | 2007-09-04 17:11:17 |
| Message-ID: | 200709041911.22021.cedric.villemain@dalibo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Le mardi 4 septembre 2007, Tom Lane a écrit :
> =?utf-8?q?C=C3=A9dric_Villemain?= <cedric(dot)villemain(at)dalibo(dot)com> writes:
> > In order to make some trivial test, I have start patching pg_dump to
> > get=20 insert using multi-rows (like --inserts option).
>
> Why? COPY is faster and won't have issues for very large numbers of
> rows.
Well, I can only make a new ask.
Why is there the --inserts and --attribute-inserts options ?
As copy is very fast, I find fast (in front of simple insert) the multi-rows
inserts. For a very small test I had 20, 30 and 440 seconds to restore
respectively copy, mutiinserts and inserts.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
--
Cédric Villemain
Administrateur de Base de Données
Cel: +33 (0)6 74 15 56 53
http://dalibo.com - http://dalibo.org
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-09-04 17:22:01 | Re: pg_dump and insert multi-rows option |
| Previous Message | korry.douglas | 2007-09-04 17:01:56 | Re: Has anyone tried out the PL/pgSQL debugger? |