Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJn29-00058b-Tn for pgsql-performance@arkaria.postgresql.org; Tue, 19 Aug 2014 17:17:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJn29-0005kl-8q for pgsql-performance@arkaria.postgresql.org; Tue, 19 Aug 2014 17:17:21 +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 1XJn27-0005iq-QL for pgsql-performance@postgresql.org; Tue, 19 Aug 2014 17:17:19 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJn24-0006pz-77 for pgsql-performance@postgresql.org; Tue, 19 Aug 2014 17:17:18 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 92ADB560009; Tue, 19 Aug 2014 19:17:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC6B08.dip0.t-ipconnect.de [93.220.107.8]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 8B412560005; Tue, 19 Aug 2014 19:17:11 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id EE74E100829; Tue, 19 Aug 2014 19:17:10 +0200 (CEST) Date: Tue, 19 Aug 2014 19:17:10 +0200 From: Andres Freund To: Dave Owens Cc: Merlin Moncure , Matheus de Oliveira , postgres performance list Subject: Re: query against pg_locks leads to large memory alloc Message-ID: <20140819171710.GA15735@awork2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 On 2014-08-18 14:36:52 -0700, Dave Owens wrote: > On Mon, Aug 18, 2014 at 2:21 PM, Matheus de Oliveira > wrote: > > Do you really need such large values? What is your max_connections value? > > max_connections = 450 ...we have found that we run out of shared > memory when max_pred_locks_per_transaction is less than 30k. What was the precise error message when that happened? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance