Apply PGDLLIMPORT markings to some GUC variables
authorPeter Eisentraut <[email protected]>
Wed, 14 Aug 2024 09:36:12 +0000 (11:36 +0200)
committerPeter Eisentraut <[email protected]>
Wed, 14 Aug 2024 09:36:12 +0000 (11:36 +0200)
According to the commit message in 8ec569479, we must have all variables
in header files marked with PGDLLIMPORT. In commit d3cc5ffe81f6 some
variables were moved from launch_backend.c file to several header files.

This adds PGDLLIMPORT to moved variables.

Author: Sofia Kopikova <[email protected]>
Reviewed-by: Robert Haas <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/e0b17014-5319-4dd6-91cd-93d9c8fc9539%40postgrespro.ru

src/include/postmaster/syslogger.h
src/include/storage/pmsignal.h
src/include/storage/proc.h
src/include/storage/procsignal.h
src/include/utils/guc.h

index b5fc239ba9ca51e774ce2d0967a4b28d470f48f6..94ea263f2bfd98ad019a861c28808d9b45455d17 100644 (file)
@@ -76,7 +76,7 @@ extern PGDLLIMPORT bool Log_truncate_on_rotation;
 extern PGDLLIMPORT int Log_file_mode;
 
 #ifdef EXEC_BACKEND
-extern pg_time_t first_syslogger_file_time;
+extern PGDLLIMPORT pg_time_t first_syslogger_file_time;
 #endif
 
 #ifndef WIN32
index 0c9a7e32a8acb4188ed6fcd4539e8b5ada29417c..87ac91848bc1a71b64877728ee05b007e1c24d51 100644 (file)
@@ -58,7 +58,7 @@ typedef enum
 typedef struct PMSignalData PMSignalData;
 
 #ifdef EXEC_BACKEND
-extern volatile PMSignalData *PMSignalState;
+extern PGDLLIMPORT volatile PMSignalData *PMSignalState;
 #endif
 
 /*
index bbd893a544e80bb23c245ddf39b9cc64f6165bd8..deeb06c9e0107bae2dbb7c484d90bd87334cd1a1 100644 (file)
@@ -454,8 +454,8 @@ extern PGDLLIMPORT int IdleSessionTimeout;
 extern PGDLLIMPORT bool log_lock_waits;
 
 #ifdef EXEC_BACKEND
-extern slock_t *ProcStructLock;
-extern PGPROC *AuxiliaryProcs;
+extern PGDLLIMPORT slock_t *ProcStructLock;
+extern PGDLLIMPORT PGPROC *AuxiliaryProcs;
 #endif
 
 
index 2516869465d4ef1b6518ee2799c545410e248a4a..f94c11a9a84235f98260c08a63905479154b3f33 100644 (file)
@@ -77,7 +77,7 @@ extern void procsignal_sigusr1_handler(SIGNAL_ARGS);
 typedef struct ProcSignalHeader ProcSignalHeader;
 
 #ifdef EXEC_BACKEND
-extern ProcSignalHeader *ProcSignal;
+extern PGDLLIMPORT ProcSignalHeader *ProcSignal;
 #endif
 
 #endif                         /* PROCSIGNAL_H */
index b80cf8e839a0425916abd8d6bf5a0ec182b2eba8..840b0fe57ff471ba34e9c0c5c88f793bfa643179 100644 (file)
@@ -312,11 +312,11 @@ extern PGDLLIMPORT bool optimize_bounded_sort;
  * that would then require including the definition of struct
  * config_enum_entry into those header files.)
  */
-extern const struct config_enum_entry archive_mode_options[];
-extern const struct config_enum_entry dynamic_shared_memory_options[];
-extern const struct config_enum_entry recovery_target_action_options[];
-extern 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 archive_mode_options[];
+extern PGDLLIMPORT const struct config_enum_entry dynamic_shared_memory_options[];
+extern PGDLLIMPORT const struct config_enum_entry recovery_target_action_options[];
+extern PGDLLIMPORT const struct config_enum_entry wal_level_options[];
+extern PGDLLIMPORT const struct config_enum_entry wal_sync_method_options[];
 
 /*
  * Functions exported by guc.c