Re: Performance on inserts
| От | Tom Lane |
|---|---|
| Тема | Re: Performance on inserts |
| Дата | |
| Msg-id | 2963.967304748@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Performance on inserts (Matthew Kirkwood <matthew@hairy.beasts.org>) |
| Ответы |
Re: Performance on inserts
|
| Список | pgsql-hackers |
Matthew Kirkwood <matthew@hairy.beasts.org> writes:
> One of MySQL's little syntax abuses allows:
> INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..);
Actually, that's perfectly standard SQL92, just an item we haven't
got round to supporting yet. (Until we do the fabled querytree
restructuring, it seems a lot harder than it is worth.)
COPY FROM stdin is definitely the fastest way of inserting data,
however, since you avoid a ton of parse/plan overhead that way.
Of course you also lose the ability to have column defaults
computed for you, etc ... there's no free lunch ...
regards, tom lane
В списке pgsql-hackers по дате отправления: