Use COPY instead of SQL inserts
To take advantage of the fast COPY command for PostgreSQL target, you must be logged in as a superuser.