mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Apply PGDLLIMPORT markings to some GUC variables
According to the commit message in8ec569479
, we must have all variables in header files marked with PGDLLIMPORT. In commitd3cc5ffe81
some variables were moved from launch_backend.c file to several header files. This adds PGDLLIMPORT to moved variables. Author: Sofia Kopikova <s.kopikova@postgrespro.ru> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/e0b17014-5319-4dd6-91cd-93d9c8fc9539%40postgrespro.ru
This commit is contained in:
@ -76,7 +76,7 @@ extern PGDLLIMPORT bool Log_truncate_on_rotation;
|
|||||||
extern PGDLLIMPORT int Log_file_mode;
|
extern PGDLLIMPORT int Log_file_mode;
|
||||||
|
|
||||||
#ifdef EXEC_BACKEND
|
#ifdef EXEC_BACKEND
|
||||||
extern pg_time_t first_syslogger_file_time;
|
extern PGDLLIMPORT pg_time_t first_syslogger_file_time;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
@ -58,7 +58,7 @@ typedef enum
|
|||||||
typedef struct PMSignalData PMSignalData;
|
typedef struct PMSignalData PMSignalData;
|
||||||
|
|
||||||
#ifdef EXEC_BACKEND
|
#ifdef EXEC_BACKEND
|
||||||
extern volatile PMSignalData *PMSignalState;
|
extern PGDLLIMPORT volatile PMSignalData *PMSignalState;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -454,8 +454,8 @@ extern PGDLLIMPORT int IdleSessionTimeout;
|
|||||||
extern PGDLLIMPORT bool log_lock_waits;
|
extern PGDLLIMPORT bool log_lock_waits;
|
||||||
|
|
||||||
#ifdef EXEC_BACKEND
|
#ifdef EXEC_BACKEND
|
||||||
extern slock_t *ProcStructLock;
|
extern PGDLLIMPORT slock_t *ProcStructLock;
|
||||||
extern PGPROC *AuxiliaryProcs;
|
extern PGDLLIMPORT PGPROC *AuxiliaryProcs;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ extern void procsignal_sigusr1_handler(SIGNAL_ARGS);
|
|||||||
typedef struct ProcSignalHeader ProcSignalHeader;
|
typedef struct ProcSignalHeader ProcSignalHeader;
|
||||||
|
|
||||||
#ifdef EXEC_BACKEND
|
#ifdef EXEC_BACKEND
|
||||||
extern ProcSignalHeader *ProcSignal;
|
extern PGDLLIMPORT ProcSignalHeader *ProcSignal;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* PROCSIGNAL_H */
|
#endif /* PROCSIGNAL_H */
|
||||||
|
@ -312,11 +312,11 @@ extern PGDLLIMPORT bool optimize_bounded_sort;
|
|||||||
* that would then require including the definition of struct
|
* that would then require including the definition of struct
|
||||||
* config_enum_entry into those header files.)
|
* config_enum_entry into those header files.)
|
||||||
*/
|
*/
|
||||||
extern const struct config_enum_entry archive_mode_options[];
|
extern PGDLLIMPORT const struct config_enum_entry archive_mode_options[];
|
||||||
extern const struct config_enum_entry dynamic_shared_memory_options[];
|
extern PGDLLIMPORT const struct config_enum_entry dynamic_shared_memory_options[];
|
||||||
extern const struct config_enum_entry recovery_target_action_options[];
|
extern PGDLLIMPORT const struct config_enum_entry recovery_target_action_options[];
|
||||||
extern const struct config_enum_entry wal_level_options[];
|
extern PGDLLIMPORT const struct config_enum_entry wal_level_options[];
|
||||||
extern const struct config_enum_entry wal_sync_method_options[];
|
extern PGDLLIMPORT const struct config_enum_entry wal_sync_method_options[];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Functions exported by guc.c
|
* Functions exported by guc.c
|
||||||
|
Reference in New Issue
Block a user