mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Remove a few unused global variables and declarations.
- Commit3eb77eba5a
, 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.) - Commitc2fe139c20
moved the 'synchronize_seqscans' variable and introduced an extern declaration in tableam.h, making the one in guc_tables.c unnecessary. - Commit6f0cf87872
removed the 'pgstat_temp_directory' GUC, but forgot to remove the corresponding global variable. - Commit1b4e729eaa
removed the 'pg_krb_realm' GUC, and its global variable, but forgot the declaration in auth.h. Spotted all these by reading the code.
This commit is contained in:
parent
3e8da50244
commit
548d726030
@ -37,8 +37,6 @@
|
|||||||
#include "utils/inval.h"
|
#include "utils/inval.h"
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
|
||||||
static MemoryContext pendingOpsCxt; /* context for the pending ops state */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In some contexts (currently, standalone backends and the checkpointer)
|
* In some contexts (currently, standalone backends and the checkpointer)
|
||||||
* we keep track of pending fsync operations: we need to remember all relation
|
* we keep track of pending fsync operations: we need to remember all relation
|
||||||
|
@ -97,7 +97,6 @@ extern char *default_tablespace;
|
|||||||
extern char *temp_tablespaces;
|
extern char *temp_tablespaces;
|
||||||
extern bool ignore_checksum_failure;
|
extern bool ignore_checksum_failure;
|
||||||
extern bool ignore_invalid_pages;
|
extern bool ignore_invalid_pages;
|
||||||
extern bool synchronize_seqscans;
|
|
||||||
|
|
||||||
#ifdef TRACE_SYNCSCAN
|
#ifdef TRACE_SYNCSCAN
|
||||||
extern bool trace_syncscan;
|
extern bool trace_syncscan;
|
||||||
@ -530,8 +529,6 @@ char *HbaFileName;
|
|||||||
char *IdentFileName;
|
char *IdentFileName;
|
||||||
char *external_pid_file;
|
char *external_pid_file;
|
||||||
|
|
||||||
char *pgstat_temp_directory;
|
|
||||||
|
|
||||||
char *application_name;
|
char *application_name;
|
||||||
|
|
||||||
int tcp_keepalives_idle;
|
int tcp_keepalives_idle;
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
extern PGDLLIMPORT char *pg_krb_server_keyfile;
|
extern PGDLLIMPORT char *pg_krb_server_keyfile;
|
||||||
extern PGDLLIMPORT bool pg_krb_caseins_users;
|
extern PGDLLIMPORT bool pg_krb_caseins_users;
|
||||||
extern PGDLLIMPORT bool pg_gss_accept_delegation;
|
extern PGDLLIMPORT bool pg_gss_accept_delegation;
|
||||||
extern PGDLLIMPORT char *pg_krb_realm;
|
|
||||||
|
|
||||||
extern void ClientAuthentication(Port *port);
|
extern void ClientAuthentication(Port *port);
|
||||||
extern void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata,
|
extern void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata,
|
||||||
|
Loading…
Reference in New Issue
Block a user