On Wed, Dec 20, 2017 at 9:44 AM, Uwe <u...@oss4u.com> wrote: > IIRC work_mem is a PER CONNECTION setting, > The docs for this setting clearly state that a single connection/session can itself use multiple times this values for a single query.
https://www.postgresql.org/docs/10/static/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-MEMORY David J.