Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJoNk-0000jc-Aw for pgsql-performance@arkaria.postgresql.org; Tue, 19 Aug 2014 18:43:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJoNj-0004RA-IL for pgsql-performance@arkaria.postgresql.org; Tue, 19 Aug 2014 18:43:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJoNi-0004R4-PW for pgsql-performance@postgresql.org; Tue, 19 Aug 2014 18:43:42 +0000 Received: from nm8-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.23]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJoNZ-0008SX-S7 for pgsql-performance@postgresql.org; Tue, 19 Aug 2014 18:43:41 +0000 Received: from [98.138.101.130] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 19 Aug 2014 18:43:30 -0000 Received: from [98.138.89.246] by tm18.bullet.mail.ne1.yahoo.com with NNFMP; 19 Aug 2014 18:43:30 -0000 Received: from [127.0.0.1] by omp1060.mail.ne1.yahoo.com with NNFMP; 19 Aug 2014 18:43:30 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 546693.35597.bm@omp1060.mail.ne1.yahoo.com Received: (qmail 91045 invoked by uid 60001); 19 Aug 2014 18:43:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1408473810; bh=4oWnMvp3Oer3M+dLiFaZppjG5eDVWxfAug0WDYna5zE=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=b7EPvkhljAHEavwG4A1aEjUhDkhlSPp5QJbFwuejrA2zOl7vGmEJHPLJoYvF1NyV4/FAolt0OOmGTvUfLchWtxwTCIiZPOGxyu1T145AzcI6XAYbcWXj5l8o8TMHW4bZ6ORnDjYw88dLAyfUxFGyaCD9kbU6sD4yRBrC9qdZxYc= X-YMail-OSG: .mPPztAVM1lbpMTZoV_dspaJu05QkcP67AanYUB3VT8zHtC TcFCcq1VDLdQVAKjyV9lhDdbClnTHdeWfPRw.C5PbiM_Zb_pu.DMk_7ShyNR Gs28KiL.XCQ9XeuvfN4GmxhljGlVe_EJ6q97y64bI6V6XvtoB6rwXP6SkTUM SWUmVgvRucXypiI7VLwISG_HjG0dhuZw0mC8tigoMsFQ3gKFiOevCM.tx9GF cbeU8k3NhKDnvqpj9B.supZGMG0iInTrLNDaZXVOuEMHU1qQS9lhXrTyY.kx G5BBkHFM9ncATmjzFu.qMrcp6XwaCiD.TNICM2aMdRmQCpLiI9LDZuP_FYge 2ek9x8o3nFO_C.mBQKzPYuOFTHksV2QSuj5j1GFZ1nVl1xEV5zE5m_VWBHya e2iHJO50LlAUTwg7SkIpUwHA4sLEK4Gu6DW0X4oJzXYktdRwb0unosmgUvfZ cavxEqjJ7eKRQBJdn308Ze22c5fTn8iVb_lAines2wd7ONMFKSlnsHoY7E8u C2yyRRFO0CRewCnFFKgcdnoDGbArVKg0U.lw3TpZj0mKiCG4CCSOOWGRNbvd M0QIObj10xOkY_VAhRmC69KXudg-- Received: from [24.178.25.147] by web122304.mail.ne1.yahoo.com via HTTP; Tue, 19 Aug 2014 11:43:30 PDT X-Rocket-MIMEInfo: 002.001, RGF2ZSBPd2VucyA8ZGF2ZUB0ZWFtdW5pZnkuY29tPiB3cm90ZToKPiBPbiBUdWUsIEF1ZyAxOSwgMjAxNCBhdCAxMTowMSBBTSwgS2V2aW4gR3JpdHRuZXIgPGtncml0dG5AeW1haWwuY29tPiB3cm90ZToKCj4.IENSRUFURSBUQUJMRSBhY3Rpdml0eV9zbmFwXzEgQVMgU0VMRUNUICogRlJPTSBwZ19zdGF0X2FjdGl2aXR5OwoKPiBXb3VsZCB0aGUgeW91IG9yIHRoZSBsaXN0IGJlIGludGVyZXN0ZWQgaW4gc25hcHNob3RzIG9mIHBnX2xvY2tzIGFzIHdlbGw_CgpNb3N0IGRlZmluaXRlbHkhwqAgSSdtIHNvcnIBMAEBAQE- X-Mailer: YahooMailWebService/0.8.201.700 References: <20140819171710.GA15735@awork2.anarazel.de> <1408471302.64928.YahooMailNeo@web122302.mail.ne1.yahoo.com> Message-ID: <1408473810.64930.YahooMailNeo@web122304.mail.ne1.yahoo.com> Date: Tue, 19 Aug 2014 11:43:30 -0700 From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: query against pg_locks leads to large memory alloc To: Dave Owens Cc: Andres Freund , 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: > On Tue, Aug 19, 2014 at 11:01 AM, Kevin Grittner wrot= e: >> CREATE TABLE activity_snap_1 AS SELECT * FROM pg_stat_activity; > Would the you or the list be interested in snapshots of pg_locks as well? Most definitely!=A0 I'm sorry that copied/pasted the pg_stat_activity example, I was playing with both.=A0 pg_locks is definitely the more important one, but it might be useful to try to match some of these locks up against process information as we drill down from the summary to see examples of what makes up those numbers. > I can take a restart tonight and get this going on a half-hourly basis > (unless you think more frequent snaps would be useful). Each half-hour should be fine as long as that gives at least three or four samples before you are unable to query pg_locks. -- 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