Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id DB4F9EDF36F for ; Tue, 22 May 2012 15:30:19 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SWtqa-0008PG-G8 for pgsql-admin@postgresql.org; Tue, 22 May 2012 18:30:18 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4MIU3A8005106; Tue, 22 May 2012 14:30:03 -0400 (EDT) To: Vincent Dautremont cc: pgsql-admin@postgresql.org Subject: Re: out of memory error In-reply-to: References: <3902.1337708023@sss.pgh.pa.us> Comments: In-reply-to Vincent Dautremont message dated "Tue, 22 May 2012 14:04:39 -0400" Date: Tue, 22 May 2012 14:30:03 -0400 Message-ID: <5105.1337711403@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/83 X-Sequence-Number: 39572 Vincent Dautremont writes: > I think that i'm using the database for pretty basic stuffs. > It's mostly used with stored procedures to update/ insert / select a row of > each table. > On 3 tables (less than 10 rows each), clients does updates/select at 2Hz to > have pseudo real-time data up to date. > I've got a total of 6 clients to the DB, they all access DB using stored > procedures > I would say that this is a light usage of the DB. > Then I have rubyrep 1.2.0 running to sync a backup of the DB. > it syncs 8 tables : 7 of them doesn't really change often and 1 is one of > the pseudo real-time data one. This is not much information. What I suspect is happening is that you're using plpgsql functions (or some other PL) in such a way that the system is leaking cached plans for the functions' queries; but there is far from enough evidence here to prove or disprove that, let alone debug the problem if that is a correct guess. An entirely blue-sky guess as to what your code might be doing to trigger such a problem is if you were constantly replacing the same function's definition via CREATE OR REPLACE FUNCTION. But that could be totally wrong, too. Can you put together a self-contained test case that triggers similar growth in the server process size? regards, tom lane