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 1fNOH3-0002Bk-9p for pgsql-hackers@arkaria.postgresql.org; Mon, 28 May 2018 19:57:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fNOH1-0005D8-Tg for pgsql-hackers@arkaria.postgresql.org; Mon, 28 May 2018 19:57:43 +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 1fNOH1-0005Cy-J0 for pgsql-hackers@lists.postgresql.org; Mon, 28 May 2018 19:57:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fNOGz-00070w-HU for pgsql-hackers@postgresql.org; Mon, 28 May 2018 19:57:42 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B077721B55; Mon, 28 May 2018 15:57:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 28 May 2018 15:57:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-transfer-encoding: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=eGd5au3s0UR7zedf8lDvj55jiWZG3 VNZM5es7SlBUq4=; b=EWsoUAacMIBh+zTDxft5pOTdZp59s2h8LXc79FxKOdywi 65oA73GTZRO7Ov+SChh9A5xzqm9OL69fcAjaxdaMxYFWiCBHD1S2wKBKkhfeebY0 wS42MePA830USWQoCcYwrmf8cZUtCYhPSEqbXwPuDw0kBuKx3nnuDEcnDp5HNhhd qj3JscFPD9Oh8ES6H/7Gq6gk6ndfmQ1HPF0OnMwl48v8vTTIwxJxtm6k2P4Q2+Wc JdcY3Puthe1qdcWWAwHGlSQb2PBp12ndeFbM+4iiv/UyLzn5cb3zI29rgWurKCAQ TEPoQJOUai5XhEZmLr/1n89e9kRW8nwPteJPtJfYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=eGd5au 3s0UR7zedf8lDvj55jiWZG3VNZM5es7SlBUq4=; b=dVQPqnkeQIrIQWoF/+8YO6 iL0mBgB9rRk7vwJ2u7HhrOFva9SCFJdX+IARHvYDu9qUUZgaHcSx+adPrtoCuMje tWyi00QXVADvDYb8AUrYfGQE5/3lJdZxhLdEkWbKJfEQ5xs2+zfp9zUBaMgzb9Pl 745CpgblW8LDXT34eVAVMh4n1UkiEq1LZT6OI8uNHDs6eZk3R9U637XYE5EzcaUp 3AFvLFDQ3D+TcrwizVGUfMcRnbf1UFPlcLhQHbP9wud45KGafiQM6UWpJ+BMcPgd RmrchmiRK4PmezOk9Z8CIRkDq18Z0j2XI1SI8uPlFGVIvd5CKm99ZY3O8o1rhwAg == 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 (unknown [104.153.224.168]) by mail.messagingengine.com (Postfix) with ESMTPA id 5DB8E10252; Mon, 28 May 2018 15:57:39 -0400 (EDT) Date: Mon, 28 May 2018 12:57:32 -0700 From: Andres Freund To: "Nishant, Fnu" Cc: Tom Lane , "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: <20180528195732.pl7pt77itacsfw6m@alap3.anarazel.de> References: <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> <20180527200006.hbwa2h7nfuunmnza@alap3.anarazel.de> <5AA972C7-DF64-4EAF-8828-A21AE05E18CB@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5AA972C7-DF64-4EAF-8828-A21AE05E18CB@amazon.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, (please don't top post) On 2018-05-28 15:07:52 +0000, Nishant, Fnu wrote: > We were working on this issue and thinking if we could actually make > pg_class(rd_rel) part of recache entry upgradable. Right, that's necessary. See the patch I just sent. > To achieve this we can allocate Form_pg_class structures (for shared > relations… a small number) on shared memory. But why would this be necessary / a good idea? Even if we decided it were, it seems like it'd end up being quite invasive. But I doubt it's a good plan, because relcache entries want / need to be updated differently in the transaction that does the changes (as it needs to see the effect of catalog changes before commit) than other sessions (which only should see them after commit). Greetings, Andres Freund