Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
Date: 2017-03-10 04:50:27
Message-ID: 19724.1489121427@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Andres Freund <andres(at)anarazel(dot)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. 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.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2017-03-10 09:52:20 pgsql: Fix a potential double-free in ecpg.
Previous Message Tom Lane 2017-03-10 04:37:00 pgsql: Fix hard-coded relkind constants in assorted other files.