Re: Improving PostgreSQL insert performance
Nicolas Paris <niparisco@gmail.com>
From: Nicolas Paris <niparisco@gmail.com>
To: Frits Jalvingh <jal@etc.to>
Cc: Scott Marlowe <scott.marlowe@gmail.com>, Kenneth Marshall <ktm@rice.edu>, Andreas Kretschmer <andreas@a-kretschmer.de>, "pgsql-performance@postgresql.org" <pgsql-performance@postgresql.org>
Date: 2017-06-10T20:12:35Z
Lists: pgsql-performance
> I tried the copy command, and that indeed works quite brilliantly: > Inserted 24000000 rows in 22004 milliseconds, 1090710.7798582076 rows per > second > > That's faster than Oracle. But with a very bad interface I have to say for > normal database work.. I will try to make this work in the tooling, but it > needs some very special code to format all possible values properly, and to > manage the end of the copy, so it is not usable in general which is a pity, I > think. Have you thought about the COPY with binary format ? Thats looks more robust than the text format you used in your benchmarks.