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

Commit09cd33f

Browse files
committed
Add 'static' to file-local variables missing it.
Noticed when comparing the set of exported symbols without / with-fvisibility=hidden after adding PGDLLIMPORT to intentionally exportedsymbols.Discussion:https://postgr.es/m/20220512164513.vaheofqp2q24l65r@alap3.anarazel.de
1 parent905c020 commit09cd33f

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

‎src/backend/access/common/reloptions.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static relopt_real realRelOpts[] =
475475
};
476476

477477
/* values from StdRdOptIndexCleanup */
478-
relopt_enum_elt_defStdRdOptIndexCleanupValues[]=
478+
staticrelopt_enum_elt_defStdRdOptIndexCleanupValues[]=
479479
{
480480
{"auto",STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO},
481481
{"on",STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON},
@@ -490,7 +490,7 @@ relopt_enum_elt_def StdRdOptIndexCleanupValues[] =
490490
};
491491

492492
/* values from GistOptBufferingMode */
493-
relopt_enum_elt_defgistBufferingOptValues[]=
493+
staticrelopt_enum_elt_defgistBufferingOptValues[]=
494494
{
495495
{"auto",GIST_OPTION_BUFFERING_AUTO},
496496
{"on",GIST_OPTION_BUFFERING_ON},
@@ -499,7 +499,7 @@ relopt_enum_elt_def gistBufferingOptValues[] =
499499
};
500500

501501
/* values from ViewOptCheckOption */
502-
relopt_enum_elt_defviewCheckOptValues[]=
502+
staticrelopt_enum_elt_defviewCheckOptValues[]=
503503
{
504504
/* no value for NOT_SET */
505505
{"local",VIEW_OPTION_CHECK_OPTION_LOCAL},

‎src/backend/access/transam/commit_ts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ typedef struct CommitTimestampShared
9898
boolcommitTsActive;
9999
}CommitTimestampShared;
100100

101-
CommitTimestampShared*commitTsShared;
101+
staticCommitTimestampShared*commitTsShared;
102102

103103

104104
/* GUC variable */

‎src/backend/access/transam/xact.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ boolbsysscan = false;
121121
* The XIDs are stored sorted in numerical order (not logical order) to make
122122
* lookups as fast as possible.
123123
*/
124-
FullTransactionIdXactTopFullTransactionId= {InvalidTransactionId};
125-
intnParallelCurrentXids=0;
126-
TransactionId*ParallelCurrentXids;
124+
staticFullTransactionIdXactTopFullTransactionId= {InvalidTransactionId};
125+
staticintnParallelCurrentXids=0;
126+
staticTransactionId*ParallelCurrentXids;
127127

128128
/*
129129
* Miscellaneous flag bits to record events which occur on the top level

‎src/backend/catalog/storage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ typedef struct PendingRelSync
7373
}PendingRelSync;
7474

7575
staticPendingRelDelete*pendingDeletes=NULL;/* head of linked list */
76-
HTAB*pendingSyncHash=NULL;
76+
staticHTAB*pendingSyncHash=NULL;
7777

7878

7979
/*

‎src/backend/replication/logical/launcher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef struct LogicalRepCtxStruct
6565
LogicalRepWorkerworkers[FLEXIBLE_ARRAY_MEMBER];
6666
}LogicalRepCtxStruct;
6767

68-
LogicalRepCtxStruct*LogicalRepCtx;
68+
staticLogicalRepCtxStruct*LogicalRepCtx;
6969

7070
staticvoidApplyLauncherWakeup(void);
7171
staticvoidlogicalrep_launcher_onexit(intcode,Datumarg);

‎src/backend/replication/logical/tablesync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static bool table_states_valid = false;
124124
staticList*table_states_not_ready=NIL;
125125
staticboolFetchTableStates(bool*started_tx);
126126

127-
StringInfocopybuf=NULL;
127+
staticStringInfocopybuf=NULL;
128128

129129
/*
130130
* Exit routine for synchronization worker.

‎src/backend/replication/logical/worker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static MemoryContext LogicalStreamingContext = NULL;
251251
WalReceiverConn*LogRepWorkerWalRcvConn=NULL;
252252

253253
Subscription*MySubscription=NULL;
254-
boolMySubscriptionValid= false;
254+
staticboolMySubscriptionValid= false;
255255

256256
boolin_remote_transaction= false;
257257
staticXLogRecPtrremote_final_lsn=InvalidXLogRecPtr;

‎src/backend/tcop/cmdtag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ typedef struct CommandTagBehavior
2828
#definePG_CMDTAG(tag,name,evtrgok,rwrok,rowcnt) \
2929
{ name, evtrgok, rwrok, rowcnt },
3030

31-
constCommandTagBehaviortag_behavior[COMMAND_TAG_NEXTTAG]= {
31+
staticconstCommandTagBehaviortag_behavior[COMMAND_TAG_NEXTTAG]= {
3232
#include"tcop/cmdtaglist.h"
3333
};
3434

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp