Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJnjB-0007E4-EV for pgsql-performance@arkaria.postgresql.org; Tue, 19 Aug 2014 18:01:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJnjA-0000lt-Mc for pgsql-performance@arkaria.postgresql.org; Tue, 19 Aug 2014 18:01:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJnj9-0000ln-Oe for pgsql-performance@postgresql.org; Tue, 19 Aug 2014 18:01:47 +0000 Received: from nm2-vm5.bullet.mail.ne1.yahoo.com ([98.138.91.224]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJnj6-0002QE-10 for pgsql-performance@postgresql.org; Tue, 19 Aug 2014 18:01:46 +0000 Received: from [98.138.100.115] by nm2.bullet.mail.ne1.yahoo.com with NNFMP; 19 Aug 2014 18:01:42 -0000 Received: from [98.138.226.168] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 19 Aug 2014 18:01:42 -0000 Received: from [127.0.0.1] by omp1069.mail.ne1.yahoo.com with NNFMP; 19 Aug 2014 18:01:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 454854.52169.bm@omp1069.mail.ne1.yahoo.com Received: (qmail 71209 invoked by uid 60001); 19 Aug 2014 18:01:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1408471302; bh=QWd0+sJkYULaWXdekIcjCC/wrbOEt4EswiJLB+VA/js=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Du0FDyYeX5dpkobCg1Mop3qCkOVAhXZK7iJn7uy/j35p8hqt5VQRKIySSifAYEPd82A8mQqrx8RrX6UlKFA4SCs65PjtCiSwk6XIZf5XLk2Eup/A3FxJFBORslRJaTA+hjGFQDx/rU47dcn3JcOrM7G2dKbfnrTurofhZPjxkRA= X-YMail-OSG: baT2JbkVM1k_4dtSjpT__x8Wn9vUZSgENr7pLRQFHymuEK. VRYAzTcg2xglgGR2Ds2ZWnoiwjAuNEmXC7vWcOkCSq0enzjzzVbuQanX26ni GkWxQyL3zva417.MweLutzy.3morT4m7ZQLqkMT6otFjwCvTfJycQ3jbR5fo Z2.iSfSFzj2JKS4KRP3Nvc5WqRkSxbi5YLcCvDOecSs9MI0E44QL5bUZULeE guSE3IugC_FbkgSedQqA6Dze_P6VxatWRBn7wr7NRgR2otJGl6XwIqv0Xm16 LGEs_8.oqYf6.bAPtXXF6BCitqPl6uZoPb1.OteHSnUM8AWezFsg5Rhz04Hv sxj_0ltkgcL362NeNzz.6Gs7z7A3r9TWTp8KUX3qyFx0BY4t42XFjVZj0E9. QdW0ip1Z_v7PEcaMO7.gGNTROuM7nr87nWwhDmoDSiOOK1TLf4zsRk9e709d gYb13K0xSwNKQ3AKNDDMfvm2Kdogh.dA0HiAgb4kVecLDoBPWji7Bx1YCxxQ EvThhsVQSuPXu3s50jPqCXJAZq_bAFcOptmRKxZsh5QVcYwabaCtM27nQkjD JokMeSQWjH4TSgh5eAYcEOZzirQ-- Received: from [24.178.25.147] by web122302.mail.ne1.yahoo.com via HTTP; Tue, 19 Aug 2014 11:01:42 PDT X-Rocket-MIMEInfo: 002.001, RGF2ZSBPd2VucyA8ZGF2ZUB0ZWFtdW5pZnkuY29tPiB3cm90ZToKCj4gSSB3b25kZXIgaWYgaXQgd291bGQgYmUgaGVscGZ1bCB0byByZXN0YXJ0IHRoZSBkYXRhYmFzZSwgdGhlbiBiZWdpbgo.IGdhdGhlcmluZyBpbmZvcm1hdGlvbiBwZ19sb2NrcyB3aGlsZSBpdCBjYW4gc3RpbGwgcmVzcG9uZCB0byBxdWVyaWVzLgo.IEkgc3BlY3VsYXRlIHRoYXQgdGhpcyBpcyBwb3NzaWJsZSBiZWNhdXNlIHRoZSBhbW91bnQgb2YgbWVtb3J5IG5lZWRlZAo.IHRvIHF1ZXJ5IHBnX2xvY2tzIGNvbnRpbnVlcyB0byBncm8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.201.700 References: <20140819171710.GA15735@awork2.anarazel.de> Message-ID: <1408471302.64928.YahooMailNeo@web122302.mail.ne1.yahoo.com> Date: Tue, 19 Aug 2014 11:01:42 -0700 From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: query against pg_locks leads to large memory alloc To: Dave Owens , Andres Freund Cc: Merlin Moncure , Matheus de Oliveira , postgres performance list In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Dave Owens wrote: > I wonder if it would be helpful to restart the database, then begin > gathering information pg_locks while it can still respond to queries. > I speculate that this is possible because the amount of memory needed > to query pg_locks continues to grow (around 1900MB now). If restart is an option, that sounds like a great idea.=A0 If you could capture the data into tables where we can summarize to analyze it in a meaningful way, that would be ideal.=A0 Something like: CREATE TABLE activity_snap_1 AS SELECT * FROM pg_stat_activity; Of course, boost the number for each subsequent run. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance