Re: Add PGDLLIMPORT lines to some variables
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Noah Misch <noah@leadboat.com>, Andres Freund <andres@anarazel.de>, Brian Cloutier <brian@citusdata.com>,
Pavel Stehule <pavel.stehule@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-12-05T14:49:10Z
Lists: pgsql-hackers
On Mon, Dec 4, 2017 at 8:48 PM, Peter Geoghegan <pg@bowt.ie> wrote: > On Mon, Dec 4, 2017 at 5:41 PM, Noah Misch <noah@leadboat.com> wrote: >>> I don't think we quite have an established protocol for this. I >>> personally, but I'm biased in this specific case, is that we should >>> adopt a position that PGDLLIMPORTs should basically backpatched whenever >>> a credible extension even halfway reasonably requires it. There's no >>> easy way to get this done by default, and we're so far unwilling to just >>> slap this onto every variable. So to not further disadvantage people >>> force dto live in the MS environment, that seems the sanest >>> solution. It's not like these are high risk. >> >> +1 > > If that's going to be the policy, then I have some requests of my own. > I would like to add some PGDLLIMPORTs to suit the external version of > amcheck (the version that targets earlier versions of Postgres). These > are: > > RecentGlobalXmin -- This is only PGDLLIMPORT on Postgres 10+, > following commit 56018bf2. I'd like to get that back to 9.4, although > there is no reason to not include 9.3. > > TransactionXmin -- This is needed for the newer heap-matches-index > verification check. Again, I would like this on 9.4+, but 9.3+ works > too. > > Note that somebody asked about running it on Windows recently, and on > one other occasion in the past. It does come up. Committed with these additions. Please check that I haven't messed anything up. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Mark ReplicationSlotCtl as PGDLLIMPORT.
- 3c8f8f6ebefb 12.0 landed
- 945ae92c8a5e 10.9 landed
- 9065fc2bd1cf 9.6.14 landed
- 68a0571e2255 9.4.23 landed
- 2c5756ba5416 9.5.18 landed
- 07accce500d8 11.4 landed
-
Mark assorted variables PGDLLIMPORT.
- e6c7ff9e381b 9.3.21 landed
- f4bb60ed69d8 9.4.16 landed
- 1892f04fb176 9.5.11 landed
- a4116c460299 9.6.7 landed
- ff1473078d25 10.2 landed
- c572599c65bf 11.0 landed
-
contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.
- 56018bf26eec 10.0 cited