Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmQWS-0001Fo-4O for pgsql-committers@arkaria.postgresql.org; Fri, 10 Mar 2017 19:48:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cmQWR-00083C-NI for pgsql-committers@arkaria.postgresql.org; Fri, 10 Mar 2017 19:48:19 +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.84_2) (envelope-from ) id 1cmQWD-0007eN-8t for pgsql-committers@postgresql.org; Fri, 10 Mar 2017 19:48:05 +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.84_2) (envelope-from ) id 1cmQW9-0003wU-Iq for pgsql-committers@postgresql.org; Fri, 10 Mar 2017 19:48:04 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C4FDA20780; Fri, 10 Mar 2017 14:48:00 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 10 Mar 2017 14:48:00 -0500 DKIM-Signature: v=1; a=rsa-sha1; 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:x-sasl-enc; s=smtpout; bh=yztPXNvk/93HVT pci4Xeq4Oxsdw=; b=ha7SNKdeOyz27VIBSTuz/mpIr4COOPT/LV76YH4kjwJwLU zIZu5/yjcdLxgKncnc7haa2x0eX1XM6kUvZFO9TVOrZUIyH+AQHtJ7ywZ7lkrihs xN74bb7ALdKO9smpHoO3FSEo6qH+ErFvlQRRMprhHI5+6LIVzstfg+XJiLLu0= X-ME-Sender: X-Sasl-enc: MScxXZ2knAE/ss0qgGmgHYYoKGSqOnWIict1P0sL5Wl3 1489175280 Received: from intern.anarazel.de (unknown [172.58.35.224]) by mail.messagingengine.com (Postfix) with ESMTPA id 710717E442; Fri, 10 Mar 2017 14:48:00 -0500 (EST) Date: Fri, 10 Mar 2017 11:47:58 -0800 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Message-ID: <20170310194758.w4lyhlwwrqxzajms@alap3.anarazel.de> References: <20170310040018.vcsp6rsh5baqngie@alap3.anarazel.de> <19724.1489121427@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19724.1489121427@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 2017-03-09 23:50:27 -0500, Tom Lane wrote: > Andres Freund writes: > > On 2017-03-10 03:55:50 +0000, Tom Lane wrote: > >> contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. > > > Heh, I just wanted to push a patch removing the assertion because it > > doesn't add that much. There's imo no reason not to mark the variable > > PGDLLIMPORT, so I'm good with this too. > > Oh, I hadn't looked closely enough to notice that the only reference > there was > > Assert(TransactionIdIsValid(RecentGlobalXmin)); > > I agree: that is just about utterly useless. Well, it mirrors an existing Assert, that'd be hit when doing normal index lookups. But I agree that a bug around this is exceedingly unlikely at this point, so there's no coverage value in it. > Let's revert my patch > and remove that Assert. I'm not eager to encourage people to reference > the xmin globals if we don't have to. We have a bunch of index access methods (nbtree, spgist) referencing RecentGlobalXmin for, imo, reasonable reasons. So it doesn't seem unreasonable to keep it available for extensions, given the amount of work has gone into making indexes from extensions a usable thing. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers