Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCe7k-0008Lr-5o for pgsql-admin@arkaria.postgresql.org; Thu, 22 Aug 2013 23:17:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCe7j-0004F0-MD for pgsql-admin@arkaria.postgresql.org; Thu, 22 Aug 2013 23:17:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCe7j-0004Eu-0b for pgsql-admin@postgresql.org; Thu, 22 Aug 2013 23:17:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCe7g-0002AO-DZ for pgsql-admin@postgresql.org; Thu, 22 Aug 2013 23:17:02 +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 r7MNGtZ9027358; Thu, 22 Aug 2013 19:16:55 -0400 From: Tom Lane To: Brian Wong cc: "pgsql-admin@postgresql.org" Subject: Re: Getting "Out of memory" errors on server 9.1.9 In-reply-to: References: Comments: In-reply-to Brian Wong message dated "Thu, 22 Aug 2013 15:53:57 -0700" Date: Thu, 22 Aug 2013 19:16:55 -0400 Message-ID: <27357.1377213415@sss.pgh.pa.us> X-Pg-Spam-Score: -4.7 (----) 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 Brian Wong writes: > I'm getting a "Out of memory" error on a 9.1.9 server. What do these lines > in the log mean? ~ Brian It's a memory usage map. Your problem is evidently here: > MessageContext: 3046113280 total in 374 blocks; 24584 free (5 chunks); > 3046088696 used As far as I recall at the moment, MessageContext is used to parse, analyze, and possibly to plan an incoming query. So the short answer is that you're trying to run a query that's too long and/or too complicated. We'd need a lot more details before suggesting how you might work around that. 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