mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
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 exported symbols. Discussion: https://postgr.es/m/20220512164513.vaheofqp2q24l65r@alap3.anarazel.de
This commit is contained in:
@@ -475,7 +475,7 @@ static relopt_real realRelOpts[] =
|
||||
};
|
||||
|
||||
/* values from StdRdOptIndexCleanup */
|
||||
relopt_enum_elt_def StdRdOptIndexCleanupValues[] =
|
||||
static relopt_enum_elt_def StdRdOptIndexCleanupValues[] =
|
||||
{
|
||||
{"auto", STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO},
|
||||
{"on", STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON},
|
||||
@@ -490,7 +490,7 @@ relopt_enum_elt_def StdRdOptIndexCleanupValues[] =
|
||||
};
|
||||
|
||||
/* values from GistOptBufferingMode */
|
||||
relopt_enum_elt_def gistBufferingOptValues[] =
|
||||
static relopt_enum_elt_def gistBufferingOptValues[] =
|
||||
{
|
||||
{"auto", GIST_OPTION_BUFFERING_AUTO},
|
||||
{"on", GIST_OPTION_BUFFERING_ON},
|
||||
@@ -499,7 +499,7 @@ relopt_enum_elt_def gistBufferingOptValues[] =
|
||||
};
|
||||
|
||||
/* values from ViewOptCheckOption */
|
||||
relopt_enum_elt_def viewCheckOptValues[] =
|
||||
static relopt_enum_elt_def viewCheckOptValues[] =
|
||||
{
|
||||
/* no value for NOT_SET */
|
||||
{"local", VIEW_OPTION_CHECK_OPTION_LOCAL},
|
||||
|
||||
@@ -98,7 +98,7 @@ typedef struct CommitTimestampShared
|
||||
bool commitTsActive;
|
||||
} CommitTimestampShared;
|
||||
|
||||
CommitTimestampShared *commitTsShared;
|
||||
static CommitTimestampShared *commitTsShared;
|
||||
|
||||
|
||||
/* GUC variable */
|
||||
|
||||
@@ -121,9 +121,9 @@ bool bsysscan = false;
|
||||
* The XIDs are stored sorted in numerical order (not logical order) to make
|
||||
* lookups as fast as possible.
|
||||
*/
|
||||
FullTransactionId XactTopFullTransactionId = {InvalidTransactionId};
|
||||
int nParallelCurrentXids = 0;
|
||||
TransactionId *ParallelCurrentXids;
|
||||
static FullTransactionId XactTopFullTransactionId = {InvalidTransactionId};
|
||||
static int nParallelCurrentXids = 0;
|
||||
static TransactionId *ParallelCurrentXids;
|
||||
|
||||
/*
|
||||
* Miscellaneous flag bits to record events which occur on the top level
|
||||
|
||||
Reference in New Issue
Block a user