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 1fN1q3-0003BB-6i for pgsql-hackers@arkaria.postgresql.org; Sun, 27 May 2018 20:00:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fN1q1-0001nh-O9 for pgsql-hackers@arkaria.postgresql.org; Sun, 27 May 2018 20:00:21 +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 1fN1pz-0001nA-UR for pgsql-hackers@lists.postgresql.org; Sun, 27 May 2018 20:00:21 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fN1pr-0001jD-0V for pgsql-hackers@postgresql.org; Sun, 27 May 2018 20:00:19 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5779621BCA; Sun, 27 May 2018 16:00:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 27 May 2018 16:00:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=i6rW683POrIFii2AHIj2pqjj5LdyyoI11JQvQxVFQFg=; b=BQWjDZtc A1gZgyA7hYdoHtJo357KFeEL1WPcmpwvJooKCsICPnD6bg53VtvEyIIsc0tOM4Ly ZIBq1kTGGqSywVRquvjuCZ+sZrg0N13Seg20nclzIKoG/FEpPlrWsRKMQF1/jDh9 ulgXrUEEeEXJpWvAPAInGRRfRXJD/Atw/08eXIVE7OK58Jm09AhtvDXZupboTaNh D5iPBobv/06zgs/CfeUUSekBieXATzFmrC68VBpJHDlU7wu/kxIY40i24YlfXdqO B0tucKa6Ycq+NcTikPiMZj5SHhNMz2PQV3NyjwFbSgpwfnMdHZl9GvQKxvQdcsTe peb0gD04auY/Xg== 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-sender :x-me-sender:x-sasl-enc; s=fm2; bh=i6rW683POrIFii2AHIj2pqjj5Ldyy oI11JQvQxVFQFg=; b=WJcD/jDTIa+Yd/AZe9xE9TSrLjRIVICuLG41NOGlkEyDz S3SQa1Kel/E/DANW4DDT+ckB6wY3IapQa9c9D4LPR+/y/ErrLwh5m7wdMYmOg1fC pSKrBBmfv2BpIK7+T+oiMu22X8MiJAr3dI8mGINMOuVHaV/EYQTSof8QXt4jCXqL NelurMfD8tYcmbUiB/gsNB5S2qeSsnGbbF2Na/7tTG8HXXpr+gMszNTGNptOAiIB /P2ipApFzm46nww8y55Lq4t4YX7A6pGf8JPBRgSh6ItIppCNHPclpW7MSTZZ46EP MInj9d91E62CvcH0se4LIJRGefDkBpccYHHWKdtVA== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id D38B910261; Sun, 27 May 2018 16:00:07 -0400 (EDT) Date: Sun, 27 May 2018 13:00:06 -0700 From: Andres Freund To: Tom Lane 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 Message-ID: <20180527200006.hbwa2h7nfuunmnza@alap3.anarazel.de> 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> <10046.1527441741@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10046.1527441741@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-05-27 13:22:21 -0400, Tom Lane wrote: > 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. Yea, it's not that problematic. We already remove the local init file. I started out trying to write a version of invalidation that also WAL logs shared inval, but that turns out to be hard to do without breaking compatibilty. So I think we should just always unlink the shared one - that seems to work well. > 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. But that's what RelationReloadIndexInfo() etc do? relp = (Form_pg_class) GETSTRUCT(pg_class_tuple); memcpy(relation->rd_rel, relp, CLASS_TUPLE_SIZE); I don't think we need to modify anything outside of rd_rel at this point? I've a patch that seems to work, that mostly needs some comment polishing. Greetings, Andres Freund