diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-06-28 00:12:40 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-06-28 00:12:40 +0000 |
commit | f9ebf36970df6e61142dbe7590482cd240fdb66a (patch) | |
tree | 9dd310595417c131d80a018540029ec822729424 /src/bin/psql/command.h | |
parent | ea20397b79f795441d48eae0ace03caf4c108a3c (diff) |
Update psql for some features of new FE/BE protocol. There is a
client-side AUTOCOMMIT mode now: '\set AUTOCOMMIT off' supports
SQL-spec commit behavior. Get rid of LO_TRANSACTION hack --- the
LO operations just work now, using libpq's ability to track the
transaction status. Add a VERBOSE variable to control verboseness
of error message display, and add a %T prompt-string code to show
current transaction-block status. Superuser state display in the
prompt string correctly follows SET SESSION AUTHORIZATION commands.
Control-C works to get out of COPY IN state.
Diffstat (limited to 'src/bin/psql/command.h')
-rw-r--r-- | src/bin/psql/command.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/bin/psql/command.h b/src/bin/psql/command.h index f74be3a8510..ead859cd32c 100644 --- a/src/bin/psql/command.h +++ b/src/bin/psql/command.h @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.14 2002/03/27 19:16:13 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.15 2003/06/28 00:12:40 tgl Exp $ */ #ifndef COMMAND_H #define COMMAND_H @@ -26,20 +26,22 @@ typedef enum _backslashResult } backslashResult; -backslashResult HandleSlashCmds(const char *line, +extern backslashResult HandleSlashCmds(const char *line, PQExpBuffer query_buf, const char **end_of_cmd, volatile int *paren_level); -int - process_file(char *filename); +extern int process_file(char *filename); -bool - test_superuser(const char *username); - -bool do_pset(const char *param, +extern bool do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet); +extern void SyncVariables(void); + +extern void UnsyncVariables(void); + +extern void SyncVerboseVariable(void); + #endif /* COMMAND_H */ |