Re: Memory Problem - Mailing list pgsql-general

From Tom Lane
Subject Re: Memory Problem
Date
Msg-id 11307.1215010091@sss.pgh.pa.us
Whole thread Raw
In response to Memory Problem  (Volkan YAZICI <yazicivo@ttmail.com>)
Responses Re: Memory Problem
List pgsql-general
Volkan YAZICI <yazicivo@ttmail.com> writes:
> We have an IBM System x3850 machine running on RHEL 4.5 Cluster Suite
> with high-availability enabled. During a huge delete process, PostgreSQL
> (8.3.1) exhausts available memory and receives an OOM kill.

Are there any foreign keys referencing this table?  If so, you're
probably running out of memory for the list of pending trigger events
(to verify that the FK constraint isn't violated by the delete).

Allowing the triggers to fire individually would take forever anyway,
so it might be best to drop the foreign key constraint(s) and then
re-establish them after the delete.

            regards, tom lane

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: pg crashing
Next
From: Mayuresh Nirhali
Date:
Subject: Re: Postgres benchmark?