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 1fMzNU-00013y-G5 for pgsql-hackers@arkaria.postgresql.org; Sun, 27 May 2018 17:22:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fMzNS-0007In-9X for pgsql-hackers@arkaria.postgresql.org; Sun, 27 May 2018 17:22:42 +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.89) (envelope-from ) id 1fMzNS-0007Id-2j for pgsql-hackers@lists.postgresql.org; Sun, 27 May 2018 17:22:42 +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 1fMzNL-0006gs-74 for pgsql-hackers@postgresql.org; Sun, 27 May 2018 17:22:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w4RHMLsF010047; Sun, 27 May 2018 13:22:22 -0400 From: Tom Lane To: Andres Freund cc: "Nasby, Jim" , Alvaro Herrera , "pgsql-hackers@postgresql.org" , Maxim Boguk , Peter Geoghegan , Jeremy Finzel Subject: Re: found xmin from before relfrozenxid on pg_catalog.pg_authid In-reply-to: References: <20180524205820.quhhnn3n2ag5yryb@alap3.anarazel.de> <20180524211311.tnswfnjwnii54htx@alvherre.pgsql> <20180525203736.crkbg36muzxrjj5e@alap3.anarazel.de> <15665.1527284857@sss.pgh.pa.us> <20180525220531.43ia22l2d3jspbng@alap3.anarazel.de> <20180526204506.ql5pesq6t2jbpuy5@alap3.anarazel.de> <842C9FB7-B9FB-43B9-AF28-9C5324F23ED8@amazon.com> Comments: In-reply-to Andres Freund message dated "Sun, 27 May 2018 10:02:13 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10045.1527441741.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 27 May 2018 13:22:21 -0400 Message-ID: <10046.1527441741@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On May 27, 2018 9:39:49 AM PDT, "Nasby, Jim" wrote: >> How about only keeping the critical info for being able to find >> relations in the .init files, and then fully populate the cache by >> doing a normal lookup? > Then the cache wouldn't have any benefits, no? It's been a while, but la= st time I checked it does make quite a measurable performance difference i= n a new backend. Yeah, we don't want to lose the performance benefit. But I don't think there's any need for special magic here: we just have to accept the fact that there's a need to flush that cache sometimes. In normal use it shouldn't happen often enough to be a performance problem. FWIW, I'm not on board with "memcpy the whole row". I think the right thing is more like what we do in RelationReloadIndexInfo, ie copy over the specific fields that we expect to be mutable. regards, tom lane