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