Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines | Typedefs | Enumerations | Variables

settings.h File Reference

#include "variables.h"
#include "print.h"
Include dependency graph for settings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _psqlSettings

Defines

#define DEFAULT_FIELD_SEP   "|"
#define DEFAULT_RECORD_SEP   "\n"
#define DEFAULT_EDITOR   "vi"
#define DEFAULT_EDITOR_LINENUMBER_ARG   "+"
#define DEFAULT_PROMPT1   "%/%R%# "
#define DEFAULT_PROMPT2   "%/%R%# "
#define DEFAULT_PROMPT3   ">> "
#define EXIT_SUCCESS   0
#define EXIT_FAILURE   1
#define EXIT_BADCONN   2
#define EXIT_USER   3

Typedefs

typedef struct _psqlSettings PsqlSettings

Enumerations

enum  PSQL_ECHO { PSQL_ECHO_NONE, PSQL_ECHO_QUERIES, PSQL_ECHO_ALL }
enum  PSQL_ECHO_HIDDEN { PSQL_ECHO_HIDDEN_OFF, PSQL_ECHO_HIDDEN_ON, PSQL_ECHO_HIDDEN_NOEXEC }
enum  PSQL_ERROR_ROLLBACK { PSQL_ERROR_ROLLBACK_OFF, PSQL_ERROR_ROLLBACK_INTERACTIVE, PSQL_ERROR_ROLLBACK_ON }
enum  HistControl { hctl_none = 0, hctl_ignorespace = 1, hctl_ignoredups = 2, hctl_ignoreboth = hctl_ignorespace | hctl_ignoredups }
enum  trivalue {
  TRI_DEFAULT, TRI_NO, TRI_YES, TRI_DEFAULT,
  TRI_NO, TRI_YES, TRI_DEFAULT, TRI_NO,
  TRI_YES, TRI_DEFAULT, TRI_NO, TRI_YES
}

Variables

PsqlSettings pset

Define Documentation

#define DEFAULT_EDITOR   "vi"

Definition at line 22 of file settings.h.

#define DEFAULT_EDITOR_LINENUMBER_ARG   "+"

Definition at line 23 of file settings.h.

#define DEFAULT_FIELD_SEP   "|"

Definition at line 15 of file settings.h.

Referenced by main(), and usage().

#define DEFAULT_PROMPT1   "%/%R%# "

Definition at line 26 of file settings.h.

Referenced by main().

#define DEFAULT_PROMPT2   "%/%R%# "

Definition at line 27 of file settings.h.

Referenced by main().

#define DEFAULT_PROMPT3   ">> "

Definition at line 28 of file settings.h.

Referenced by main().

#define DEFAULT_RECORD_SEP   "\n"

Definition at line 16 of file settings.h.

Referenced by main().

#define EXIT_BADCONN   2

Definition at line 129 of file settings.h.

Referenced by CheckConnection(), and main().

#define EXIT_FAILURE   1
#define EXIT_SUCCESS   0

Definition at line 122 of file settings.h.

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

#define EXIT_USER   3

Definition at line 131 of file settings.h.


Typedef Documentation

typedef struct _psqlSettings PsqlSettings

Enumeration Type Documentation

Enumerator:
hctl_none 
hctl_ignorespace 
hctl_ignoredups 
hctl_ignoreboth 

Definition at line 51 of file settings.h.

enum PSQL_ECHO
Enumerator:
PSQL_ECHO_NONE 
PSQL_ECHO_QUERIES 
PSQL_ECHO_ALL 

Definition at line 30 of file settings.h.

{
    PSQL_ECHO_NONE,
    PSQL_ECHO_QUERIES,
    PSQL_ECHO_ALL
} PSQL_ECHO;

Enumerator:
PSQL_ECHO_HIDDEN_OFF 
PSQL_ECHO_HIDDEN_ON 
PSQL_ECHO_HIDDEN_NOEXEC 

Definition at line 37 of file settings.h.

{
    PSQL_ECHO_HIDDEN_OFF,
    PSQL_ECHO_HIDDEN_ON,
    PSQL_ECHO_HIDDEN_NOEXEC
} PSQL_ECHO_HIDDEN;

Enumerator:
PSQL_ERROR_ROLLBACK_OFF 
PSQL_ERROR_ROLLBACK_INTERACTIVE 
PSQL_ERROR_ROLLBACK_ON 

Definition at line 44 of file settings.h.

{
    PSQL_ERROR_ROLLBACK_OFF,
    PSQL_ERROR_ROLLBACK_INTERACTIVE,
    PSQL_ERROR_ROLLBACK_ON
} PSQL_ERROR_ROLLBACK;

enum trivalue
Enumerator:
TRI_DEFAULT 
TRI_NO 
TRI_YES 
TRI_DEFAULT 
TRI_NO 
TRI_YES 
TRI_DEFAULT 
TRI_NO 
TRI_YES 
TRI_DEFAULT 
TRI_NO 
TRI_YES 

Definition at line 59 of file settings.h.

{
    TRI_DEFAULT,
    TRI_NO,
    TRI_YES
};


Variable Documentation

Definition at line 36 of file startup.c.

Referenced by AcceptResult(), CheckConnection(), command_no_begin(), connection_warnings(), ConnectionUp(), describeAggregates(), describeFunctions(), describeOneTableDetails(), describeOneTSConfig(), describeOneTSParser(), describeOperators(), describeRoles(), describeTableDetails(), describeTablespaces(), describeTypes(), do_connect(), do_copy(), do_lo_export(), do_lo_import(), do_lo_list(), do_lo_unlink(), do_watch(), exec_command(), ExecQueryUsingCursor(), fail_lo_xact(), finish_lo_xact(), finishInput(), get_prompt(), handleCopyIn(), HandleSlashCmds(), initializeInput(), is_select_command(), is_superuser(), listAllDbs(), listCasts(), listCollations(), listConversions(), listDbRoleSettings(), listDefaultACLs(), listDomains(), listEventTriggers(), listExtensionContents(), listExtensions(), listForeignDataWrappers(), listForeignServers(), listForeignTables(), listLanguages(), listOneExtensionContents(), listSchemas(), listTables(), listTSConfigs(), listTSConfigsVerbose(), listTSDictionaries(), listTSParsers(), listTSParsersVerbose(), listTSTemplates(), listUserMappings(), MainLoop(), objectDescription(), parse_slash_copy(), permissionsList(), pg_send_history(), print_lo_result(), printACLColumn(), PrintNotifications(), PrintQueryResults(), PrintQueryStatus(), PrintQueryTuples(), printSSLInfo(), process_file(), ProcessResult(), psql_error(), PSQLexec(), SendQuery(), session_username(), SetCancelConn(), setQFout(), skip_white_space(), slashUsage(), standard_strings(), start_lo_xact(), StoreQueryTuple(), SyncVariables(), and UnsyncVariables().