mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Apply PGDLLIMPORT markings broadly.
Up until now, we've had a policy of only marking certain variables in the PostgreSQL header files with PGDLLIMPORT, but now we've decided to mark them all. This means that extensions running on Windows should no longer operate at a disadvantage as compared to extensions running on Linux: if the variable is present in a header file, it should be accessible. Discussion: http://postgr.es/m/CA+TgmoYanc1_FSfimhgiWSqVyP5KKmh5NP2BWNwDhO8Pg2vGYQ@mail.gmail.com
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
#define NUM_NOTIFY_BUFFERS 8
|
||||
|
||||
extern bool Trace_notify;
|
||||
extern volatile sig_atomic_t notifyInterruptPending;
|
||||
extern PGDLLIMPORT bool Trace_notify;
|
||||
extern PGDLLIMPORT volatile sig_atomic_t notifyInterruptPending;
|
||||
|
||||
extern Size AsyncShmemSize(void);
|
||||
extern void AsyncShmemInit(void);
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include "lib/stringinfo.h"
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern bool allow_in_place_tablespaces;
|
||||
extern PGDLLIMPORT bool allow_in_place_tablespaces;
|
||||
|
||||
/* XLOG stuff */
|
||||
#define XLOG_TBLSPC_CREATE 0x00
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include "parser/parse_node.h"
|
||||
|
||||
/* GUC. Is actually of type PasswordType. */
|
||||
extern int Password_encryption;
|
||||
extern PGDLLIMPORT int Password_encryption;
|
||||
|
||||
/* Hook to check passwords in CreateRole() and AlterRole() */
|
||||
typedef void (*check_password_hook_type) (const char *username, const char *shadow_pass, PasswordType password_type, Datum validuntil_time, bool validuntil_null);
|
||||
|
@@ -252,17 +252,17 @@ typedef struct VacDeadItems
|
||||
|
||||
/* GUC parameters */
|
||||
extern PGDLLIMPORT int default_statistics_target; /* PGDLLIMPORT for PostGIS */
|
||||
extern int vacuum_freeze_min_age;
|
||||
extern int vacuum_freeze_table_age;
|
||||
extern int vacuum_multixact_freeze_min_age;
|
||||
extern int vacuum_multixact_freeze_table_age;
|
||||
extern int vacuum_failsafe_age;
|
||||
extern int vacuum_multixact_failsafe_age;
|
||||
extern PGDLLIMPORT int vacuum_freeze_min_age;
|
||||
extern PGDLLIMPORT int vacuum_freeze_table_age;
|
||||
extern PGDLLIMPORT int vacuum_multixact_freeze_min_age;
|
||||
extern PGDLLIMPORT int vacuum_multixact_freeze_table_age;
|
||||
extern PGDLLIMPORT int vacuum_failsafe_age;
|
||||
extern PGDLLIMPORT int vacuum_multixact_failsafe_age;
|
||||
|
||||
/* Variables for cost-based parallel vacuum */
|
||||
extern pg_atomic_uint32 *VacuumSharedCostBalance;
|
||||
extern pg_atomic_uint32 *VacuumActiveNWorkers;
|
||||
extern int VacuumCostBalanceLocal;
|
||||
extern PGDLLIMPORT pg_atomic_uint32 *VacuumSharedCostBalance;
|
||||
extern PGDLLIMPORT pg_atomic_uint32 *VacuumActiveNWorkers;
|
||||
extern PGDLLIMPORT int VacuumCostBalanceLocal;
|
||||
|
||||
|
||||
/* in commands/vacuum.c */
|
||||
|
Reference in New Issue
Block a user