in reply to Re: Speeding up Postgres INSERTs
in thread Speeding up Postgres INSERTs

my $table = 'table'; my @cols = (qw( a b c)); $" = ", "; $dbh->do ("COPY $table (@cols) FROM STDIN"); while (...) { $dbh->pg_putline (join ("\t", @values) . "\n"); } $dbh->pg_endcopy; $dbh->commit;

Ahhh... that was what I was looking for. Many thanks.

In answer to other queries --

--

when small people start casting long shadows, it is time to go to bed