diff options
| author | Bruce Momjian | 2006-02-11 21:55:35 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2006-02-11 21:55:35 +0000 |
| commit | 4cb27fef0a9fa98448f68de1e7c928fad6895706 (patch) | |
| tree | 463e136f4ddd5f7e002275cfc102602813ede7c1 /src/bin/psql/input.h | |
| parent | fbb1daed938d404f3e669a3ab499e661af2bd25e (diff) | |
o Improve psql's handling of multi-line statements
Currently, while \e saves a single statement as one entry, interactive
statements are saved one line at a time. Ideally all statements
would be saved like \e does.
Sergey E. Koposov
Diffstat (limited to 'src/bin/psql/input.h')
| -rw-r--r-- | src/bin/psql/input.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/psql/input.h b/src/bin/psql/input.h index bddc174b12a..bd4ed99a2d8 100644 --- a/src/bin/psql/input.h +++ b/src/bin/psql/input.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/input.h,v 1.23 2005/01/01 05:43:08 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/input.h,v 1.24 2006/02/11 21:55:35 momjian Exp $ */ #ifndef INPUT_H #define INPUT_H @@ -39,4 +39,9 @@ char *gets_fromFile(FILE *source); void initializeInput(int flags); bool saveHistory(char *fname); +void pgadd_history(char *s, PQExpBuffer history_buf); +void pgclear_history(PQExpBuffer history_buf); +void pgflush_history(PQExpBuffer history_buf); + + #endif /* INPUT_H */ |
