Re: postgresql 9.1 out of memory - Mailing list pgsql-admin

From Tom Lane
Subject Re: postgresql 9.1 out of memory
Date
Msg-id 11526.1382795967@sss.pgh.pa.us
Whole thread Raw
In response to postgresql 9.1 out of memory  (Евгений Селявка <evg.selyavka@gmail.com>)
List pgsql-admin
=?KOI8-R?B?5dfHxc7JyiDzxczR18vB?= <evg.selyavka@gmail.com> writes:
> today my database crashed with out of memory

This is probably why:

> work_mem = 2GB

Don't do that.  It's especially silly to have this setting higher than
maintenance_work_mem --- should be the other way 'round.

I would also question your setting of shared_buffers.  The traditional
advice is to dedicate maybe a quarter of RAM to shared_buffers, not
three-quarters.

For more info try

https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server

            regards, tom lane


pgsql-admin by date:

Previous
From: Евгений Селявка
Date:
Subject: postgresql 9.1 out of memory
Next
From: David Johnston
Date:
Subject: Re: postgresql 9.1 out of memory