Re: Newbie questions relating to transactions

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Carl Sopchak <carl(dot)sopchak(at)cegis123(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Newbie questions relating to transactions
Date: 2009-03-08 15:49:50
Message-ID: 20090308154950.GJ3821@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carl Sopchak wrote:
> Well, the upgrade to 8.3 seemed to rid me of the command limit, but now I'm
> running out of memory. I have 2Gb physical and 8Gb swap (after adding 4Gb).

Do you have AFTER triggers on the involved tables? They are recorded on
memory and we have no mechanism to spill to disk, so it's frequent that
those cause out-of-memory. If that's the explanation, your workaround
would be to get rid of them.

> Is there a way for me to run this outside of one huge transaction? This
> really shouldn't be using more than a few hundred megs of RAM (assuming
> cursor records are all stored in memory)...

Hmm, maybe you're holding too many cursors open and not closing them
timely? Did you post your function for review?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Wenk 2009-03-08 15:53:56 Re: Enable user access from remote host
Previous Message Gregory Stark 2009-03-08 15:34:53 Re: Newbie questions relating to transactions