Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQrHz-0003Jc-Ru for pgsql-general@arkaria.postgresql.org; Thu, 07 Jun 2018 09:33:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQrHx-0001fn-LY for pgsql-general@arkaria.postgresql.org; Thu, 07 Jun 2018 09:33:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQrHx-0001fc-6X for pgsql-general@lists.postgresql.org; Thu, 07 Jun 2018 09:33:01 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQrHt-0006NW-F4 for pgsql-general@postgresql.org; Thu, 07 Jun 2018 09:32:59 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 7C745D58E2E8 for ; Thu, 7 Jun 2018 02:32:53 -0700 (MST) Date: Thu, 7 Jun 2018 02:32:53 -0700 (MST) From: pinker To: pgsql-general@postgresql.org Message-ID: <1528363973507-0.post@n3.nabble.com> Subject: Plans cache eviction from process local Memory MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi! I would like to know how postgres will behave with a big amount of cached plans from prepared statements on 1 connection. Let's say there is an application level connection pooling and one connection can last for many weeks. Many plans are cached from many prepared statements, is there any postgres management of that or it is totally system thing? Some plans will be evicted from process memory at some point of time or they will be kept infinitely causing huge amount of memory being allocated for this connection? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html