PostgreSQL 11 Administration Cookbook
by Simon Riggs, Gianni Ciolli, Sudheer Kumar Meesala, Sheldon Strauch
There's more…
CREATE INDEX for B-tree indexes can be run in parallel for PostgreSQL 11. The amount of parallelism will be directly controlled by the setting of a table's parallel_workers parameter. Be careful, since setting this at the table level affects all queries, not just the index build/rebuild. If the table-level parameter is not set, then the maintenance_work_mem and max_parallel_maintenance_workers parameters will determine how many workers will be used; the default is 64 MB for maintenance_work_mem and 2 MB for max_parallel_maintenance_workers—increase both to get further gains in performance and/or concurrency. Note that these workers are shared across all users, so be careful not to over-allocate jobs, otherwise there won't ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access