Continuing my previous question PostgreSQL maximize performance SSD the DBA SE community has given me efficient advice on optimal settings for PostgreSQL on SSD. The problem is that I will define two separate tablespaces, the first one is already on a SATA III Seagate Baracuda and one that I will set on the SSD (once the SSD arrives from the store). In that case, postgresql.conf should have two separate configurations (one for the SSD and one for the HDD). Is there any way to make settings separate per tablespace or per database, without having to restart the server and reload configurations? I am benchmarking for scientific research and basically I want to set two identical databases on the two tablespaces and compare query read performance between the SSD and HDD for my methods.
PostgreSQL – Using Two Tablespaces on SSD and SATA III HD
postgresqlpostgresql-9.3ssd
Related Question
- SQL Server Express 2008 – Storing Database Files Outside Default Directory
- SQL Server – Multiple Databases with Transaction Log on SSD
- Autodetect Random Page Cost vs Seq Page Cost in PostgreSQL
- How to Move Old Data to Cheap Hard Drive – PostgreSQL Archive with TimescaleDB
- Postgresql different configuration for different tablespace
- MySQL – Why HDD is More Sensitive to innodb_fsync_threshold Than SSD
Best Answer
You can set seq_page_cost and random_page_cost per tablespace via ALTER TABLESPACE without restarting Postgres.