From: Tom Lane <tgl@sss.pgh.pa.us>
To: Евгений Селявка <evg.selyavka@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: postgresql 9.1 out of memory
Date: Sat, 26 Oct 2013 09:59:27 -0400
Message-ID: <11526.1382795967@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKPhvNY+LJV1MDTW=1KHX+igoUyyPVW8_V1-5+T18qBQ3CJGrw@mail.gmail.com>
References: <CAKPhvNY+LJV1MDTW=1KHX+igoUyyPVW8_V1-5+T18qBQ3CJGrw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, evg.selyavka@gmail.com
Subject: Re: postgresql 9.1 out of memory
In-Reply-To: <11526.1382795967@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox