work_mem per-operation allocation limits under concurrent parallel queries
Memory allocation model PostgreSQL's work_mem parameter governs the maximum memory for each individual sort, hash aggregate, hash join, or materialize operation before spilling to disk. A single query can invoke several such operations concurrently, and each parallel worker allocates its own work_mem , so total demand scales with both query complexity and ma