PostgreSQL Source Code  git master
_psqlSettings Struct Reference

#include <settings.h>

Data Fields

PGconndb
 
int encoding
 
FILE * queryFout
 
bool queryFoutPipe
 
FILE * copyStream
 
PGresultlast_error_result
 
printQueryOpt popt
 
char * gfname
 
bool g_expanded
 
char * gset_prefix
 
bool gdesc_flag
 
bool gexec_flag
 
bool crosstab_flag
 
char * ctv_args [4]
 
bool notty
 
enum trivalue getPassword
 
FILE * cur_cmd_source
 
bool cur_cmd_interactive
 
int sversion
 
const char * progname
 
char * inputfile
 
uint64 lineno
 
uint64 stmt_lineno
 
bool timing
 
FILE * logfile
 
VariableSpace vars
 
bool autocommit
 
bool on_error_stop
 
bool quiet
 
bool singleline
 
bool singlestep
 
bool hide_tableam
 
int fetch_count
 
int histsize
 
int ignoreeof
 
PSQL_ECHO echo
 
PSQL_ECHO_HIDDEN echo_hidden
 
PSQL_ERROR_ROLLBACK on_error_rollback
 
PSQL_COMP_CASE comp_case
 
HistControl histcontrol
 
const char * prompt1
 
const char * prompt2
 
const char * prompt3
 
PGVerbosity verbosity
 
PGContextVisibility show_context
 

Detailed Description

Definition at line 81 of file settings.h.

Field Documentation

◆ autocommit

bool _psqlSettings::autocommit

Definition at line 125 of file settings.h.

Referenced by autocommit_hook(), fail_lo_xact(), finish_lo_xact(), and SendQuery().

◆ comp_case

PSQL_COMP_CASE _psqlSettings::comp_case

Definition at line 137 of file settings.h.

Referenced by comp_keyword_case_hook().

◆ copyStream

FILE* _psqlSettings::copyStream

Definition at line 88 of file settings.h.

Referenced by do_copy(), main(), and ProcessResult().

◆ crosstab_flag

bool _psqlSettings::crosstab_flag

Definition at line 99 of file settings.h.

Referenced by exec_command_crosstabview(), PrintQueryResults(), and SendQuery().

◆ ctv_args

char* _psqlSettings::ctv_args[4]

Definition at line 100 of file settings.h.

Referenced by exec_command_crosstabview(), PrintResultsInCrosstab(), and SendQuery().

◆ cur_cmd_interactive

bool _psqlSettings::cur_cmd_interactive

◆ cur_cmd_source

FILE* _psqlSettings::cur_cmd_source

Definition at line 105 of file settings.h.

Referenced by do_copy(), handleCopyIn(), main(), MainLoop(), and ProcessResult().

◆ db

◆ echo

PSQL_ECHO _psqlSettings::echo

Definition at line 134 of file settings.h.

Referenced by echo_hook(), ExecQueryTuples(), main(), MainLoop(), and SendQuery().

◆ echo_hidden

PSQL_ECHO_HIDDEN _psqlSettings::echo_hidden

Definition at line 135 of file settings.h.

Referenced by echo_hidden_command(), echo_hidden_hook(), and PSQLexec().

◆ encoding

◆ fetch_count

int _psqlSettings::fetch_count

Definition at line 131 of file settings.h.

Referenced by ExecQueryUsingCursor(), fetch_count_hook(), and SendQuery().

◆ g_expanded

bool _psqlSettings::g_expanded

Definition at line 95 of file settings.h.

Referenced by exec_command_g(), ExecQueryUsingCursor(), PrintQueryTuples(), and SendQuery().

◆ gdesc_flag

bool _psqlSettings::gdesc_flag

Definition at line 97 of file settings.h.

Referenced by exec_command_gdesc(), and SendQuery().

◆ getPassword

enum trivalue _psqlSettings::getPassword

Definition at line 104 of file settings.h.

Referenced by do_connect(), main(), and parse_psql_options().

◆ gexec_flag

bool _psqlSettings::gexec_flag

Definition at line 98 of file settings.h.

Referenced by exec_command_gexec(), ExecQueryTuples(), PrintQueryResults(), and SendQuery().

◆ gfname

char* _psqlSettings::gfname

◆ gset_prefix

char* _psqlSettings::gset_prefix

◆ hide_tableam

bool _psqlSettings::hide_tableam

Definition at line 130 of file settings.h.

Referenced by describeOneTableDetails(), and hide_tableam_hook().

◆ histcontrol

HistControl _psqlSettings::histcontrol

Definition at line 138 of file settings.h.

Referenced by histcontrol_hook(), and pg_send_history().

◆ histsize

int _psqlSettings::histsize

Definition at line 132 of file settings.h.

Referenced by finishInput(), and histsize_hook().

◆ ignoreeof

int _psqlSettings::ignoreeof

Definition at line 133 of file settings.h.

Referenced by ignoreeof_hook(), and MainLoop().

◆ inputfile

char* _psqlSettings::inputfile

Definition at line 110 of file settings.h.

Referenced by exec_command_prompt(), log_locus_callback(), and process_file().

◆ last_error_result

PGresult* _psqlSettings::last_error_result

Definition at line 90 of file settings.h.

Referenced by ClearOrSaveResult(), exec_command_errverbose(), and main().

◆ lineno

uint64 _psqlSettings::lineno

Definition at line 111 of file settings.h.

Referenced by handleCopyIn(), log_locus_callback(), and MainLoop().

◆ logfile

◆ notty

bool _psqlSettings::notty

Definition at line 102 of file settings.h.

Referenced by connection_warnings(), do_connect(), main(), and MainLoop().

◆ on_error_rollback

PSQL_ERROR_ROLLBACK _psqlSettings::on_error_rollback

Definition at line 136 of file settings.h.

Referenced by on_error_rollback_hook(), and SendQuery().

◆ on_error_stop

bool _psqlSettings::on_error_stop

Definition at line 126 of file settings.h.

Referenced by ExecQueryTuples(), main(), MainLoop(), and on_error_stop_hook().

◆ popt

◆ progname

const char* _psqlSettings::progname

Definition at line 109 of file settings.h.

Referenced by connection_warnings(), do_connect(), main(), MainLoop(), and parse_psql_options().

◆ prompt1

const char* _psqlSettings::prompt1

Definition at line 139 of file settings.h.

Referenced by get_prompt(), and prompt1_hook().

◆ prompt2

const char* _psqlSettings::prompt2

Definition at line 140 of file settings.h.

Referenced by get_prompt(), and prompt2_hook().

◆ prompt3

const char* _psqlSettings::prompt3

Definition at line 141 of file settings.h.

Referenced by get_prompt(), and prompt3_hook().

◆ queryFout

◆ queryFoutPipe

bool _psqlSettings::queryFoutPipe

Definition at line 86 of file settings.h.

Referenced by main(), and setQFout().

◆ quiet

◆ show_context

PGContextVisibility _psqlSettings::show_context

Definition at line 143 of file settings.h.

Referenced by show_context_hook(), and SyncVariables().

◆ singleline

bool _psqlSettings::singleline

Definition at line 128 of file settings.h.

Referenced by get_prompt(), MainLoop(), and singleline_hook().

◆ singlestep

bool _psqlSettings::singlestep

Definition at line 129 of file settings.h.

Referenced by ExecQueryTuples(), SendQuery(), and singlestep_hook().

◆ stmt_lineno

uint64 _psqlSettings::stmt_lineno

Definition at line 112 of file settings.h.

Referenced by get_prompt(), handleCopyIn(), and MainLoop().

◆ sversion

◆ timing

bool _psqlSettings::timing

◆ vars

◆ verbosity

PGVerbosity _psqlSettings::verbosity

Definition at line 142 of file settings.h.

Referenced by SyncVariables(), and verbosity_hook().


The documentation for this struct was generated from the following file: