In a Parallel Seq Scan (or Parallel Sequential Scan) Postgres uses multiple processes in parallel to read rows from a table. Each process scans a section of the table, page by page sequentially, in the order they are on disk.

The results of these are then combined in a Gather operation.

Parallel sequential scans can be a fast way of getting a high proportion of the rows from large tables. However, fetching a small proportion of rows from a large table is normally far more efficient via an index.

If you use both the ANALYZE and VERBOSE parameters of EXPLAIN, you’ll see per-worker statistics for parallel operations. The leader process details are not shown explicitly, but by default it also contributes to the work.

 


For more help deciphering query plans, check out our product pgMustard.


Last updated: November 2024, PostgreSQL 17

Issue reports and suggestions are welcome, please get in touch.