Re: Memory Problem - Mailing list pgsql-general

From Volkan YAZICI
Subject Re: Memory Problem
Date
Msg-id 87ej6bpfup.fsf@alamut.mobiliz.com.tr
Whole thread Raw
In response to Re: Memory Problem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

On Wed, 02 Jul 2008, Tom Lane <tgl@sss.pgh.pa.us> writes:
> 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.

Thanks for the warning. Temporarily disabling FKs did the job. I knew
the problem about triggers, but didn't expect same applies for FKs
also. I'm very suprised FKs cause memory exhaustion too.


Regards.

pgsql-general by date:

Previous
From: "Dave Page"
Date:
Subject: Re: pg_dump - lost synchronization with server: got message type "d", length 6036499
Next
From: "Dave Page"
Date:
Subject: Re: Problem with roles and permissions