Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Va4Os-0002f1-HC for pgsql-admin@arkaria.postgresql.org; Sat, 26 Oct 2013 13:59:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Va4Or-0007G9-Nd for pgsql-admin@arkaria.postgresql.org; Sat, 26 Oct 2013 13:59:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Va4Oq-0007G1-Mp for pgsql-admin@postgresql.org; Sat, 26 Oct 2013 13:59:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Va4On-0003Ip-CM for pgsql-admin@postgresql.org; Sat, 26 Oct 2013 13:59:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r9QDxRhh011527; Sat, 26 Oct 2013 09:59:27 -0400 From: Tom Lane To: =?KOI8-R?B?5dfHxc7JyiDzxczR18vB?= cc: pgsql-admin@postgresql.org Subject: Re: postgresql 9.1 out of memory In-reply-to: References: Comments: In-reply-to =?KOI8-R?B?5dfHxc7JyiDzxczR18vB?= message dated "Sat, 26 Oct 2013 16:54:27 +0400" Date: Sat, 26 Oct 2013 09:59:27 -0400 Message-ID: <11526.1382795967@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org =?KOI8-R?B?5dfHxc7JyiDzxczR18vB?= 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