diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-10-16 03:10:17 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-10-16 03:10:17 +0000 |
| commit | 88fd162ef64cab7ed197f0612e0b610d57007200 (patch) | |
| tree | 7ea088e7cef6a6848508fe9629c55819a200b399 /src/bin/pg_dump/pg_dumpall.c | |
| parent | 9ffc8ed58b55cb3925bb95cc184583fcb9772013 (diff) | |
| download | postgresql-88fd162ef64cab7ed197f0612e0b610d57007200.tar.gz | |
Allow pg_ctl to determine the server is up when getting a request for a
password.
Make password error message a #define and use it consistently.
Sean Chittenden
Diffstat (limited to 'src/bin/pg_dump/pg_dumpall.c')
| -rw-r--r-- | src/bin/pg_dump/pg_dumpall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 1b26ebb4dc..caf439cf31 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.53 2004/10/15 04:32:28 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.54 2004/10/16 03:10:15 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -957,7 +957,7 @@ connectDatabase(const char *dbname, const char *pghost, const char *pgport, } if (PQstatus(conn) == CONNECTION_BAD && - strcmp(PQerrorMessage(conn), "fe_sendauth: no password supplied\n") == 0 && + strcmp(PQerrorMessage(conn), PQnoPasswordSupplied) == 0 && !feof(stdin)) { PQfinish(conn); |
