After updating server (and also the pc for additional tests) to Postgres 9.5 I tried to import PG 9.4 dumps and/or to restore 9.5 dumps:
pg_dump testdb > db.sql psql -d testdb -f db.sql
Restoring these dumps in PG 9.4 takes less than 30 minutes, restoring them in PG 9.5 takes several hours (even if I make a PG 9.5 dump and try to restore this one)!!! The test dumps have a size of 8 GB.
Does anybody know what the reason could be? Tried it with the original PG 9.4 and 9.5 configs as well as with different options like increasing max_wal_size in 9.5 e.g.
Do I miss a specific default option in 9.5 which may be different to 9.4?
LOG: duration: 278349.128 ms statement: COPY test (id, ...) LOG: duration: 646487.952 ms statement: ALTER TABLE ONLY test ...
The same with creating index... It takes hours with PG 9.5.