Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5304fec

Browse files
committed
Apply PGDLLIMPORT markings to some GUC variables
According to the commit message in8ec5694, we must have all variablesin header files marked with PGDLLIMPORT. In commitd3cc5ff somevariables 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
1 parentc8e2d42 commit5304fec

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

‎src/include/postmaster/syslogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extern PGDLLIMPORT bool Log_truncate_on_rotation;
7676
externPGDLLIMPORTintLog_file_mode;
7777

7878
#ifdefEXEC_BACKEND
79-
externpg_time_tfirst_syslogger_file_time;
79+
externPGDLLIMPORTpg_time_tfirst_syslogger_file_time;
8080
#endif
8181

8282
#ifndefWIN32

‎src/include/storage/pmsignal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ typedef enum
5858
typedefstructPMSignalDataPMSignalData;
5959

6060
#ifdefEXEC_BACKEND
61-
externvolatilePMSignalData*PMSignalState;
61+
externPGDLLIMPORTvolatilePMSignalData*PMSignalState;
6262
#endif
6363

6464
/*

‎src/include/storage/proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ extern PGDLLIMPORT int IdleSessionTimeout;
454454
externPGDLLIMPORTboollog_lock_waits;
455455

456456
#ifdefEXEC_BACKEND
457-
externslock_t*ProcStructLock;
458-
externPGPROC*AuxiliaryProcs;
457+
externPGDLLIMPORTslock_t*ProcStructLock;
458+
externPGDLLIMPORTPGPROC*AuxiliaryProcs;
459459
#endif
460460

461461

‎src/include/storage/procsignal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ extern void procsignal_sigusr1_handler(SIGNAL_ARGS);
7777
typedefstructProcSignalHeaderProcSignalHeader;
7878

7979
#ifdefEXEC_BACKEND
80-
externProcSignalHeader*ProcSignal;
80+
externPGDLLIMPORTProcSignalHeader*ProcSignal;
8181
#endif
8282

8383
#endif/* PROCSIGNAL_H */

‎src/include/utils/guc.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,11 @@ extern PGDLLIMPORT bool optimize_bounded_sort;
312312
* that would then require including the definition of struct
313313
* config_enum_entry into those header files.)
314314
*/
315-
externconststructconfig_enum_entryarchive_mode_options[];
316-
externconststructconfig_enum_entrydynamic_shared_memory_options[];
317-
externconststructconfig_enum_entryrecovery_target_action_options[];
318-
externconststructconfig_enum_entrywal_level_options[];
319-
externconststructconfig_enum_entrywal_sync_method_options[];
315+
externPGDLLIMPORTconststructconfig_enum_entryarchive_mode_options[];
316+
externPGDLLIMPORTconststructconfig_enum_entrydynamic_shared_memory_options[];
317+
externPGDLLIMPORTconststructconfig_enum_entryrecovery_target_action_options[];
318+
externPGDLLIMPORTconststructconfig_enum_entrywal_level_options[];
319+
externPGDLLIMPORTconststructconfig_enum_entrywal_sync_method_options[];
320320

321321
/*
322322
* Functions exported by guc.c

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp