Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqoeh-0001Ke-QV for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jul 2019 01:04:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqoeg-0007Ks-Bz for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jul 2019 01:04:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqoeg-0007II-2g for pgsql-bugs@lists.postgresql.org; Fri, 26 Jul 2019 01:04:18 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqoed-0007wD-Ss for pgsql-bugs@lists.postgresql.org; Fri, 26 Jul 2019 01:04:17 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 84AE3512; Thu, 25 Jul 2019 21:04:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 25 Jul 2019 21:04:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=Z5bCnFndovwMzDG/mtZdc9QxvAq LgxOVhnsXa5MgaOM=; b=f7nyxp/zp6EJdE6CW8p81xNWt9S3QYMD8oipvdyN8l9 Cvx8Hel4ah0B4gHp8a/V0wWHnoXUW4onInc9F+aDH61ZSxgSJsLurm9MqI3LBgri W9C3ZjMANKGkFmGDtR90KETp6oUKh2OqRmc6DksfV5nv9V6fvfXcRZgThpVVWI2x OhZjeyEbN4xsC3W205ta7Gv4e/fcXmBG38/NFvUg9bSqJ+wXCa1Hk0lFFU2L0a5T BlAu6e1RBEZR2GlepzSedYmarGxtmcNqBi/aUnaYnRsvAGEVmXR958vAYAMPJQdf kkYxa/YrJIifRxNBEH2tDEzsd86iBkGlSxi0Y+97UBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Z5bCnF ndovwMzDG/mtZdc9QxvAqLgxOVhnsXa5MgaOM=; b=Ddru65+TNQHEPDN8T2gaB3 cmWkieUUszLv6Y0i+HQSa26L4aXsaJym7FNuqNCUjctJJw1Q/NoQKf0sgxdfzt4n zGejYP89zZUmPnottq5ZcSE17/cVdrKJ+/1KKIipPvc7GyiYnQqgue9jqW6GI7YW xuafJnqWzNOd9UWgyo1I+OcZQO4QHljDnfB2OUfl03xb0I612Hdm4DivSf6QEfL/ r9x68RwvwiBJnQrL6lxXoP2XrAUdaXvjeYN9uO4nxFsyovCsdIVyKYAzGTtnepQM 01JueYXSmFfyrgbgoIvTCkAaKAO8X/0BDPuYzcCJxtIfcYkCacruwIBQyMwDaq5g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrkeefgdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgr rhgriigvlhdruggvqeenucfkphepieejrdduiedtrddvudekrddvfeejnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 3CF7680059; Thu, 25 Jul 2019 21:04:12 -0400 (EDT) Date: Thu, 25 Jul 2019 18:04:10 -0700 From: Andres Freund To: PG Bug reporting form Cc: pgsql-bugs@lists.postgresql.org, dmigowski@ikoffice.de Subject: Re: BUG #15923: Prepared statements take way too much memory. Message-ID: <20190726010410.ciri44bo6zym4mdu@alap3.anarazel.de> References: <15923-4b35496c683c52d2@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15923-4b35496c683c52d2@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-07-24 21:39:35 +0000, PG Bug reporting form wrote: > I have the problem on 9.5, and testing this on 11.2 still shows the same > behaviour. Please, please, someone have a look at where all that memory goes > and I will immediately roll out a new version to all of my customers. I love > your database and the stability, but this is definitely a point where you > can drastically improve! If you had a reproducible testcase, you'd be more likely to get useful input... While there's some bigger architectural reasons at play here too, the overhead you show here seems a bit abnormal still. IMO bug reports aren't a great avenue for random improvement requests. Greetings, Andres Freund