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

Commit2c0c98e

Browse files
hlinnakapull[bot]
authored andcommitted
Remove a few unused global variables and declarations.
- Commit3eb77eb, which moved the pending ops queue from md.c to sync.c, introduced a duplicate, unused 'pendingOpsCxt' variable. (I'm surprised none of the compilers or static analysis tools have complained about that.)- Commitc2fe139 moved the 'synchronize_seqscans' variable and introduced an extern declaration in tableam.h, making the one in guc_tables.c unnecessary.- Commit6f0cf87 removed the 'pgstat_temp_directory' GUC, but forgot to remove the corresponding global variable.- Commit1b4e729 removed the 'pg_krb_realm' GUC, and its global variable, but forgot the declaration in auth.h.Spotted all these by reading the code.
1 parent2b4d535 commit2c0c98e

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

‎src/backend/storage/sync/sync.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
#include"utils/inval.h"
3838
#include"utils/memutils.h"
3939

40-
staticMemoryContextpendingOpsCxt;/* context for the pending ops state */
41-
4240
/*
4341
* In some contexts (currently, standalone backends and the checkpointer)
4442
* we keep track of pending fsync operations: we need to remember all relation

‎src/backend/utils/misc/guc_tables.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ extern char *default_tablespace;
9797
externchar*temp_tablespaces;
9898
externboolignore_checksum_failure;
9999
externboolignore_invalid_pages;
100-
externboolsynchronize_seqscans;
101100

102101
#ifdefTRACE_SYNCSCAN
103102
externbooltrace_syncscan;
@@ -530,8 +529,6 @@ char *HbaFileName;
530529
char*IdentFileName;
531530
char*external_pid_file;
532531

533-
char*pgstat_temp_directory;
534-
535532
char*application_name;
536533

537534
inttcp_keepalives_idle;

‎src/include/libpq/auth.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
externPGDLLIMPORTchar*pg_krb_server_keyfile;
2020
externPGDLLIMPORTboolpg_krb_caseins_users;
2121
externPGDLLIMPORTboolpg_gss_accept_delegation;
22-
externPGDLLIMPORTchar*pg_krb_realm;
2322

2423
externvoidClientAuthentication(Port*port);
2524
externvoidsendAuthRequest(Port*port,AuthRequestareq,constchar*extradata,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp