typedefstruct _psqlSettings
{
PGconn *db; /* connection to backend */ int encoding; /* client_encoding */
FILE *queryFout; /* where to send the query results */ bool queryFoutPipe; /* queryFout is from a popen() */
FILE *copyStream; /* Stream to read/write for \copy command */
PGresult *last_error_result; /* most recent error result, if any */
printQueryOpt popt; /* The active print format settings */
char *gfname; /* one-shot file output argument for \g */
printQueryOpt *gsavepopt; /* if not null, saved print format settings */
char *gset_prefix; /* one-shot prefix argument for \gset */ bool gdesc_flag; /* one-shot request to describe query result */ bool gexec_flag; /* one-shot request to execute query result */
PSQL_SEND_MODE send_mode; /* one-shot request to send query with normal
* or extended query protocol */ int bind_nparams; /* number of parameters */ char **bind_params; /* parameters for extended query protocol call */ char *stmtName; /* prepared statement name used for extended
* query protocol commands */ int piped_commands; /* number of piped commands */ int piped_syncs; /* number of piped syncs */ int available_results; /* number of results available to get */ int requested_results; /* number of requested results, including *syncmessages.Usedtoreadalimited
* subset of the available_results. */ bool crosstab_flag; /* one-shot request to crosstab result */ char *ctv_args[4]; /* \crosstabview arguments */
bool notty; /* stdin or stdout is not a tty (as determined
* on startup) */ enum trivalue getPassword; /* prompt the user for a username and password */
FILE *cur_cmd_source; /* describe the status of the current main
* loop */ bool cur_cmd_interactive; int sversion; /* backend server version */ constchar *progname; /* in case you renamed psql */ char *inputfile; /* file being currently processed, if any */
uint64 lineno; /* also for error reporting */
uint64 stmt_lineno; /* line number inside the current statement */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.