pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
5+ messages / 3 participants
[nested] [flat]

* pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
@ 2017-03-10 03:55 Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-10 04:00 ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2017-03-10 03:55 UTC (permalink / raw)
  To: pgsql-committers

contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.

Per buildfarm.  Maybe some of the other xmin variables in snapmgr.h
ought to get this too, but for the moment I'm just interested in
un-breaking the buildfarm.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/56018bf26eec1a0b4bf20303c98065a8eb1b0c5d

Modified Files
--------------
src/include/utils/snapmgr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
  2017-03-10 03:55 pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-03-10 04:00 ` Andres Freund <andres@anarazel.de>
  2017-03-10 04:50   ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Andres Freund @ 2017-03-10 04:00 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

On 2017-03-10 03:55:50 +0000, Tom Lane wrote:
> contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
> 
> Per buildfarm.  Maybe some of the other xmin variables in snapmgr.h
> ought to get this too, but for the moment I'm just interested in
> un-breaking the buildfarm.

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.

- Andres


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
  2017-03-10 03:55 pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-10 04:00 ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Andres Freund <andres@anarazel.de>
@ 2017-03-10 04:50   ` Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-10 19:47     ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2017-03-10 04:50 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers

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.  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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
  2017-03-10 03:55 pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-10 04:00 ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Andres Freund <andres@anarazel.de>
  2017-03-10 04:50   ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-03-10 19:47     ` Andres Freund <andres@anarazel.de>
  2017-03-10 20:36       ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Peter Geoghegan <pg@bowt.ie>
  0 siblings, 1 reply; 5+ messages in thread

From: Andres Freund @ 2017-03-10 19:47 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
  2017-03-10 03:55 pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-10 04:00 ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Andres Freund <andres@anarazel.de>
  2017-03-10 04:50   ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-10 19:47     ` Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Andres Freund <andres@anarazel.de>
@ 2017-03-10 20:36       ` Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 5+ messages in thread

From: Peter Geoghegan @ 2017-03-10 20:36 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers

On Fri, Mar 10, 2017 at 11:47 AM, Andres Freund <andres@anarazel.de> wrote:
>>       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.

I was in favor of just removing the assertion myself, given the
PGDLLIMPORT issue, but FWIW I am generally in favor of documenting
assertions like this. I suppose that this assertion is less likely to
ever break than most other assertions, but presumably no code ever
gets committed without somebody being pretty confident that any
assertions it happens to have will never fail to hold. It doesn't seem
productive to worry about whether or not any trivial assertions are
pulling their weight. They're justified as documentation. If the
assertion ever does fail, preventing someone from pushing buggy code,
then so much the better.

-- 
Peter Geoghegan


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2017-03-10 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-10 03:55 pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified. Tom Lane <tgl@sss.pgh.pa.us>
2017-03-10 04:00 ` Andres Freund <andres@anarazel.de>
2017-03-10 04:50   ` Tom Lane <tgl@sss.pgh.pa.us>
2017-03-10 19:47     ` Andres Freund <andres@anarazel.de>
2017-03-10 20:36       ` Peter Geoghegan <pg@bowt.ie>

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