11th October 2018: PostgreSQL 11 RC 1 Released!
Unsupported versions: 7.0

Use COPY FROM

Use COPY FROM STDIN to load all the records in one command, instead of a series of INSERT commands. This reduces parsing, planning, etc overhead a great deal. If you do this then it's not necessary to fool around with autocommit.