Skip to content

Commit 548d726

Browse files
committed
Remove a few unused global variables and declarations.
- Commit 3eb77eb, 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.) - Commit c2fe139 moved the 'synchronize_seqscans' variable and introduced an extern declaration in tableam.h, making the one in guc_tables.c unnecessary. - Commit 6f0cf87 removed the 'pgstat_temp_directory' GUC, but forgot to remove the corresponding global variable. - Commit 1b4e729 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 parent 3e8da50 commit 548d726

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-
static MemoryContext pendingOpsCxt; /* 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
extern char *temp_tablespaces;
9898
extern bool ignore_checksum_failure;
9999
extern bool ignore_invalid_pages;
100-
extern bool synchronize_seqscans;
101100

102101
#ifdef TRACE_SYNCSCAN
103102
extern bool trace_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
int tcp_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
extern PGDLLIMPORT char *pg_krb_server_keyfile;
2020
extern PGDLLIMPORT bool pg_krb_caseins_users;
2121
extern PGDLLIMPORT bool pg_gss_accept_delegation;
22-
extern PGDLLIMPORT char *pg_krb_realm;
2322

2423
extern void ClientAuthentication(Port *port);
2524
extern void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy