Re: getting around 'out of memory' errors

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rguha(at)indiana(dot)edu
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: getting around 'out of memory' errors
Date: 2006-08-24 18:12:48
Message-ID: 7864.1156443168@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rajarshi Guha <rguha(at)indiana(dot)edu> writes:
> On Thu, 2006-08-24 at 10:50 -0400, Tom Lane wrote:
>> I think you are getting burnt by the list of pending trigger actions
>> to check the foreign-key references in B.

> Thanks for the pointer. I've dropped the constraint and am now running
> the INSERT.
> However when I look at the output of top, I'm seeing that the %MEM value
> is continuously increasing and I'm worried that I'm going to hit the
> same problem in a few hours.

Sure you got all the FK constraints involving table B? Do you have any
AFTER triggers other than the FK constraints?

> One thing I did not mention previously is that table A has some
> constraints on some fields (notably field b is specified to be NOT
> NULL).

Plain old CHECK constraints shouldn't matter. Tell us more about those
functions in the SELECT though --- what are they?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message AgentM 2006-08-24 18:26:53 Re: SQL:2003 Window Functions for postgresql 8.3?
Previous Message Alvaro Herrera 2006-08-24 18:11:27 Re: SQL:2003 Window Functions for postgresql 8.3?