| From: | Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il> |
|---|---|
| To: | pgsql-general(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL? |
| Date: | 1999-10-27 17:21:03 |
| Message-ID: | l03130302b43ce49ae1ea@[147.233.159.109] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
At 17:08 +0200 on 22/10/1999, Tom Lane wrote:
> In the meantime, the conventional wisdom is still that you should use
> COPY, if possible, for bulk data loading. (If you need default values
> inserted in some columns then this won't do...)
Yes it would - in two steps. COPY to a temp table that only has the
non-default columns. Then INSERT ... SELECT ... from that temp table to
your "real" table.
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
| From | Date | Subject | |
|---|---|---|---|
| Next Message | big.john | 1999-10-27 17:26:43 | create index on numeric |
| Previous Message | Shawn T. Walker | 1999-10-27 17:17:21 | Auto Ordering |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jan Wieck | 1999-10-27 17:52:43 | Re: [HACKERS] Function-manager redesign: second draft (long) |
| Previous Message | Bruce Momjian | 1999-10-27 16:30:07 | Re: [HACKERS] Syntax error in psqlHelp.h |