Re: [PERFORM] Improving PostgreSQL insert performance - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: [PERFORM] Improving PostgreSQL insert performance
Date
Msg-id 20170611123648.6hvwifreuyrmu2my@alvherre.pgsql
Whole thread Raw
In response to Re: [PERFORM] Improving PostgreSQL insert performance  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
List pgsql-performance
Vladimir Sitnikov wrote:
> Alvaro>Something like
> INSERT INTO .. VALUES ('col1', 'col2'), ('col1', 'col2'), ('col1', 'col2')>I
> did not
> Frits>try that, to be honest.
>
> pgjdbc does automatically rewrite insert values(); into insert ...
> values(),(),(),() when reWriteBatchedInserts=true. I don't expect manual
> multivalues to be noticeably faster there.

Ahh, so that's what that option does :-)  Nice to know -- great feature.

--
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-performance by date:

Previous
From: Vladimir Sitnikov
Date:
Subject: Re: [PERFORM] Improving PostgreSQL insert performance
Next
From: Jeff Janes
Date:
Subject: Re: [PERFORM] [BUGS] Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64