diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-02-11 00:18:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-02-11 00:18:20 +0000 |
commit | 15c30b6f9ade42754b6721c64ba1766f16252107 (patch) | |
tree | 1edd71a887c8a700095643eeaa97126106964947 /src/bin/pg_dump/pg_backup.h | |
parent | 906254a53c7efee365ece567ddeab69ac9870d53 (diff) | |
download | postgresql-15c30b6f9ade42754b6721c64ba1766f16252107.tar.gz postgresql-15c30b6f9ade42754b6721c64ba1766f16252107.zip |
Be more wary about mixed-case database names and user names. Get
the CREATE DATABASE command right in pg_dump -C case.
Diffstat (limited to 'src/bin/pg_dump/pg_backup.h')
-rw-r--r-- | src/bin/pg_dump/pg_backup.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bin/pg_dump/pg_backup.h b/src/bin/pg_dump/pg_backup.h index b81b029e293..32d4c1e88eb 100644 --- a/src/bin/pg_dump/pg_backup.h +++ b/src/bin/pg_dump/pg_backup.h @@ -15,7 +15,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup.h,v 1.17 2001/10/28 06:25:58 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup.h,v 1.18 2002/02/11 00:18:20 tgl Exp $ * * Modifications - 28-Jun-2000 - pjw@rhyme.com.au * @@ -136,10 +136,11 @@ extern void exit_horribly(Archive *AH, const char *modulename, const char *fmt,...) __attribute__((format(printf, 3, 4))); -extern char * - simple_prompt(const char *prompt, int maxlen, bool echo); +extern char *simple_prompt(const char *prompt, int maxlen, bool echo); -/* Lets the archibe know we have a DB connection to shutdown if it dies */ +extern const char *fmtId(const char *identifier, bool force_quotes); + +/* Lets the archive know we have a DB connection to shutdown if it dies */ PGconn *ConnectDatabase(Archive *AH, const char *dbname, |