Re: Newbie questions relating to transactions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Newbie questions relating to transactions
Дата
Msg-id 20090308154950.GJ3821@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Newbie questions relating to transactions  (Carl Sopchak <carl.sopchak@cegis123.com>)
Ответы Re: Newbie questions relating to transactions  (Carl Sopchak <carl.sopchak@cegis123.com>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Newbie questions relating to transactions
Следующее
От: Andreas Wenk
Дата:
Сообщение: Re: Enable user access from remote host