Parallel Query in PostgreSQL enables multiple threads working on the same table for the same query in parallel.
Parallel Query is a feature of PostgreSQL 9.6 or later. It uses query plans leveraging multiple CPUs in order to answer queries faster. Only applicable for certain types of queries. Queries that touch a large amount of data but return only a few rows to the user will typically benefit most. Like SELECT COUNT(*) FROM tbl
.
There are some important limitations.