I need to insert large amounts of data into postgresql using multi-row inserts.
I am currently doing this by constructing the sql query using a stringbuilder and appending the values but I was wondering if there is a way to use commands and command parameters instead?
COPY
. See the npgsql manual. – Craig Ringer Jun 4 '13 at 23:30COPY
ing to aTEMPORARY
orUNLOGGED
table then doing anINSERT INTO ... SELECT
to insert a massaged version of the data into the real target table. – Craig Ringer Jun 5 '13 at 23:49