How to enable multi-row inserts with the PostgreSQL reWriteBatchedInserts configuration property

Introduction The PostgreSQL JDBC Driver has been adding a lot of a very useful optimization, and one of the lesser-known ones is the reWriteBatchedInserts configuration property. In this article, you will see how the reWriteBatchedInserts JDBC configuration property works in PostgreSQL, and how it allows you to rewrite INSERT statements into a multi-VALUE INSERT.