BUG #8687: HashAggregate runs out of memory - Mailing list pgsql-bugs

From peters@mitre.org
Subject BUG #8687: HashAggregate runs out of memory
Date
Msg-id E1VtqTK-0003td-Aa@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #8687: HashAggregate runs out of memory  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      8687
Logged by:          Peter Sylvester
Email address:      peters@mitre.org
PostgreSQL version: 9.3.2
Operating system:   CENTOS6
Description:

I have a query which causes out of memory conditions with a HashAggregate
plan.


The query involves a join between a 10M row table and a 1K row table,
work_mem=300MB, process space goes over 6GB then machine runs out of memory
and swap and the OS kills the back end process.


I have a test script which I can upload to recreate the issue.

pgsql-bugs by date:

Previous
From: Andres Freund
Date:
Subject: Re: BUG #8656: Duplicate data violating unique constraints
Next
From: Umesh Kirdat
Date:
Subject: Duplicate key violates unique constraint