Re: Add PGDLLIMPORT lines to some variables

Pavel Stehule <pavel.stehule@gmail.com>

From: Pavel Stehule <pavel.stehule@gmail.com>
To: Brian Cloutier <brian@citusdata.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-11-17T06:27:56Z
Lists: pgsql-hackers
Hi

2017-11-16 23:59 GMT+01:00 Brian Cloutier <brian@citusdata.com>:

> Hello hackers,
>
> I'm porting Citus to Windows and found that we use some variables which PG
> doesn't export; here is a patch which adds PGDLLIMPORT declarations to
> those variables. This is unfortunately required on Windows for extensions
> to be able to use those variables, and appears to already have been done to
> quite a few other variables.
>

please, append session_timezone to your list

Regards

Pavel

Commits

  1. Mark ReplicationSlotCtl as PGDLLIMPORT.

  2. Mark assorted variables PGDLLIMPORT.

  3. contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.