diff options
author | Bruce Momjian <bruce@momjian.us> | 2010-03-13 14:55:57 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2010-03-13 14:55:57 +0000 |
commit | a6c1cea2b7ac446558ce0cde14b19e74220eeb7f (patch) | |
tree | 9e6e87e2897d671579d045517589df533f475fdc /src/interfaces/libpq/libpq-int.h | |
parent | 8b2ae44dc8dd56511c7004c5b117b720081dc8fb (diff) | |
download | postgresql-a6c1cea2b7ac446558ce0cde14b19e74220eeb7f.tar.gz postgresql-a6c1cea2b7ac446558ce0cde14b19e74220eeb7f.zip |
Add libpq warning message if the .pgpass-retrieved password fails.
Add ERRCODE_INVALID_PASSWORD sqlstate error code.
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 56ee13dbf6d..6fe96ab1684 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.149 2010/02/26 02:01:33 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.150 2010/03/13 14:55:57 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -343,6 +343,7 @@ struct pg_conn ProtocolVersion pversion; /* FE/BE protocol version in use */ int sversion; /* server version, e.g. 70401 for 7.4.1 */ bool password_needed; /* true if server demanded a password */ + bool dot_pgpass_used; /* true if used .pgpass */ bool sigpipe_so; /* have we masked SIGPIPE via SO_NOSIGPIPE? */ bool sigpipe_flag; /* can we mask SIGPIPE via MSG_NOSIGNAL? */ |