pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
Date: Fri, 10 Mar 2017 11:47:58 -0800
Message-ID: <20170310194758.w4lyhlwwrqxzajms@alap3.anarazel.de> (raw)
In-Reply-To: <19724.1489121427@sss.pgh.pa.us>
References: <E1cmBeg-00020Y-Ui@gemulon.postgresql.org>
	<20170310040018.vcsp6rsh5baqngie@alap3.anarazel.de>
	<19724.1489121427@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 2017-03-09 23:50:27 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> 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



view thread (5+ messages)  latest in thread

Message-ID: <20170310194758.w4lyhlwwrqxzajms@alap3.anarazel.de>
Permalink:  ../20170310194758.w4lyhlwwrqxzajms@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170310194758.w4lyhlwwrqxzajms@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
  In-Reply-To: <20170310194758.w4lyhlwwrqxzajms@alap3.anarazel.de>
  References: <E1cmBeg-00020Y-Ui@gemulon.postgresql.org> <20170310040018.vcsp6rsh5baqngie@alap3.anarazel.de> <19724.1489121427@sss.pgh.pa.us> <20170310194758.w4lyhlwwrqxzajms@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox