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
 
printQueryOptgsavepopt
 
char * gset_prefix
 
bool gdesc_flag
 
bool gexec_flag
 
bool bind_flag
 
int bind_nparams
 
char ** bind_params
 
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
 
PGconndead_conn
 
bool autocommit
 
bool on_error_stop
 
bool quiet
 
bool singleline
 
bool singlestep
 
bool hide_compression
 
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
 
bool show_all_results
 
PGContextVisibility show_context
 

Detailed Description

Definition at line 80 of file settings.h.

Field Documentation

◆ autocommit

bool _psqlSettings::autocommit

Definition at line 136 of file settings.h.

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

◆ bind_flag

bool _psqlSettings::bind_flag

Definition at line 99 of file settings.h.

Referenced by exec_command_bind(), ExecQueryAndProcessResults(), and SendQuery().

◆ bind_nparams

int _psqlSettings::bind_nparams

Definition at line 101 of file settings.h.

Referenced by exec_command_bind(), ExecQueryAndProcessResults(), and SendQuery().

◆ bind_params

char** _psqlSettings::bind_params

Definition at line 102 of file settings.h.

Referenced by exec_command_bind(), ExecQueryAndProcessResults(), and SendQuery().

◆ comp_case

PSQL_COMP_CASE _psqlSettings::comp_case

Definition at line 149 of file settings.h.

Referenced by comp_keyword_case_hook().

◆ copyStream

FILE* _psqlSettings::copyStream

Definition at line 87 of file settings.h.

Referenced by do_copy(), ExecQueryAndProcessResults(), HandleCopyResult(), and main().

◆ crosstab_flag

bool _psqlSettings::crosstab_flag

◆ ctv_args

char* _psqlSettings::ctv_args[4]

Definition at line 104 of file settings.h.

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

◆ cur_cmd_interactive

bool _psqlSettings::cur_cmd_interactive

◆ cur_cmd_source

FILE* _psqlSettings::cur_cmd_source

Definition at line 109 of file settings.h.

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

◆ db

◆ dead_conn

PGconn* _psqlSettings::dead_conn

Definition at line 129 of file settings.h.

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

◆ echo

PSQL_ECHO _psqlSettings::echo

Definition at line 146 of file settings.h.

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

◆ echo_hidden

PSQL_ECHO_HIDDEN _psqlSettings::echo_hidden

Definition at line 147 of file settings.h.

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

◆ encoding

◆ fetch_count

int _psqlSettings::fetch_count

Definition at line 143 of file settings.h.

Referenced by ExecQueryAndProcessResults(), and fetch_count_hook().

◆ 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 106 of file settings.h.

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

◆ gexec_flag

bool _psqlSettings::gexec_flag

◆ gfname

char* _psqlSettings::gfname

Definition at line 93 of file settings.h.

Referenced by exec_command_g(), ExecQueryAndProcessResults(), SendQuery(), and SetupGOutput().

◆ gsavepopt

printQueryOpt* _psqlSettings::gsavepopt

Definition at line 94 of file settings.h.

Referenced by exec_command_g(), process_command_g_options(), and SendQuery().

◆ gset_prefix

char* _psqlSettings::gset_prefix

◆ hide_compression

bool _psqlSettings::hide_compression

Definition at line 141 of file settings.h.

Referenced by describeOneTableDetails(), and hide_compression_hook().

◆ hide_tableam

bool _psqlSettings::hide_tableam

Definition at line 142 of file settings.h.

Referenced by describeOneTableDetails(), hide_tableam_hook(), and listTables().

◆ histcontrol

HistControl _psqlSettings::histcontrol

Definition at line 150 of file settings.h.

Referenced by histcontrol_hook(), and pg_send_history().

◆ histsize

int _psqlSettings::histsize

Definition at line 144 of file settings.h.

Referenced by finishInput(), and histsize_hook().

◆ ignoreeof

int _psqlSettings::ignoreeof

Definition at line 145 of file settings.h.

Referenced by ignoreeof_hook(), and MainLoop().

◆ inputfile

char* _psqlSettings::inputfile

Definition at line 114 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 89 of file settings.h.

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

◆ lineno

uint64 _psqlSettings::lineno

Definition at line 115 of file settings.h.

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

◆ logfile

◆ notty

bool _psqlSettings::notty

Definition at line 106 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 148 of file settings.h.

Referenced by on_error_rollback_hook(), and SendQuery().

◆ on_error_stop

bool _psqlSettings::on_error_stop

Definition at line 137 of file settings.h.

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

◆ popt

printQueryOpt _psqlSettings::popt

Definition at line 91 of file settings.h.

Referenced by describeAccessMethods(), describeAggregates(), describeConfigurationParameters(), describeFunctions(), describeOneTableDetails(), describeOneTSConfig(), describeOneTSParser(), describeOperators(), describePublications(), describeRoleGrants(), describeRoles(), describeSubscriptions(), describeTablespaces(), describeTypes(), do_pset(), do_watch(), exec_command_a(), exec_command_C(), exec_command_encoding(), exec_command_f(), exec_command_g(), exec_command_help(), exec_command_html(), exec_command_pset(), exec_command_s(), exec_command_sf_sv(), exec_command_slash_command_help(), exec_command_t(), exec_command_T(), exec_command_x(), ExecQueryAndProcessResults(), listAllDbs(), listCasts(), listCollations(), listConversions(), listDbRoleSettings(), listDefaultACLs(), listDomains(), listEventTriggers(), listExtendedStats(), listExtensions(), listForeignDataWrappers(), listForeignServers(), listForeignTables(), listLanguages(), listLargeObjects(), listOneExtensionContents(), listOperatorClasses(), listOperatorFamilies(), listOpFamilyFunctions(), listOpFamilyOperators(), listPartitionedTables(), listPublications(), listSchemas(), listTables(), listTSConfigs(), listTSDictionaries(), listTSParsers(), listTSTemplates(), listUserMappings(), main(), objectDescription(), parse_psql_options(), permissionsList(), print_lo_result(), printCrosstab(), printHistory(), PrintQueryStatus(), PrintQueryTuples(), process_command_g_options(), SendQuery(), slashUsage(), SyncVariables(), and usage().

◆ progname

const char* _psqlSettings::progname

Definition at line 113 of file settings.h.

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

◆ prompt1

const char* _psqlSettings::prompt1

Definition at line 151 of file settings.h.

Referenced by get_prompt(), and prompt1_hook().

◆ prompt2

const char* _psqlSettings::prompt2

Definition at line 152 of file settings.h.

Referenced by get_prompt(), and prompt2_hook().

◆ prompt3

const char* _psqlSettings::prompt3

Definition at line 153 of file settings.h.

Referenced by get_prompt(), and prompt3_hook().

◆ queryFout

◆ queryFoutPipe

bool _psqlSettings::queryFoutPipe

Definition at line 85 of file settings.h.

Referenced by main(), and setQFout().

◆ quiet

◆ show_all_results

bool _psqlSettings::show_all_results

Definition at line 155 of file settings.h.

Referenced by ExecQueryAndProcessResults(), PrintQueryResult(), and show_all_results_hook().

◆ show_context

PGContextVisibility _psqlSettings::show_context

Definition at line 156 of file settings.h.

Referenced by show_context_hook(), and SyncVariables().

◆ singleline

bool _psqlSettings::singleline

Definition at line 139 of file settings.h.

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

◆ singlestep

bool _psqlSettings::singlestep

Definition at line 140 of file settings.h.

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

◆ stmt_lineno

uint64 _psqlSettings::stmt_lineno

Definition at line 116 of file settings.h.

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

◆ sversion

◆ timing

bool _psqlSettings::timing

◆ vars

◆ verbosity

PGVerbosity _psqlSettings::verbosity

Definition at line 154 of file settings.h.

Referenced by SyncVariables(), and verbosity_hook().


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