Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKGI9-0007zN-5X for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Nov 2017 04:17:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKGI8-0000Mf-Kd for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Nov 2017 04:17:40 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eKGI8-0000MU-E2 for pgsql-hackers@lists.postgresql.org; Thu, 30 Nov 2017 04:17:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eKGI3-0004rL-GJ for pgsql-hackers@postgresql.org; Thu, 30 Nov 2017 04:17:39 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vAU4HN5b031586; Wed, 29 Nov 2017 23:17:23 -0500 From: Tom Lane To: Michael Paquier cc: Robert Haas , Kyotaro HORIGUCHI , David Steele , Jim Nasby , Craig Ringer , PostgreSQL mailing lists Subject: Re: Protect syscache from bloating with negative cache entries In-reply-to: References: <6eb3b24b-c0eb-b8ca-f847-609704e2a370@pgmasters.net> <3b7b7f90-db46-8c37-c4f7-443330c3ae33@pgmasters.net> <20170317.142313.232290068.horiguchi.kyotaro@lab.ntt.co.jp> <20171031.184622.92520047.horiguchi.kyotaro@lab.ntt.co.jp> Comments: In-reply-to Michael Paquier message dated "Thu, 30 Nov 2017 12:35:06 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <84819.1512015443.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 29 Nov 2017 23:17:23 -0500 Message-ID: <84820.1512015443@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Thu, Nov 30, 2017 at 12:32 PM, Robert Haas wr= ote: >> I think we have to mark this as returned with feedback or rejected for >> the reasons mentioned here: >> http://postgr.es/m/CA+TgmoZjn28uYJRQ2K+5idhYxWBDER68sctoc2p_nW7h7JbhYw@= mail.gmail.com > Good point. I forgot this bit. Thanks for mentioning it I am switching > the patch as returned with feedback. We had a bug report just today that seemed to me to trace to relcache bloat: https://www.postgresql.org/message-id/flat/20171129100649.1473.73990%40wri= gleys.postgresql.org ISTM that there's definitely work to be done here, but as I said upthread, I think we need a more holistic approach than just focusing on negative catcache entries, or even just catcache entries. The thing that makes me uncomfortable about this is that we used to have a catcache size limitation mechanism, and ripped it out because it had too much overhead (see commit 8b9bc234a). I'm not sure how we can avoid that problem within a fresh implementation. regards, tom lane