From c52aab5525c13a3d378cd09f4187844ce697a948 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 22 Sep 2008 14:21:44 +0000 Subject: Get rid of pgpass_from_client tracking inside libpq --- given the conclusion that presence of the password in the conninfo string must be checked *before* risking a connection attempt, there is no point in checking it afterwards. This makes the specification of PQconnectionUsedPassword() a bit simpler and perhaps more generally useful, too. --- src/interfaces/libpq/libpq-int.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/interfaces/libpq/libpq-int.h') diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index b29057bde95..9702c616820 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.133 2008/09/19 16:40:40 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.134 2008/09/22 14:21:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -290,7 +290,6 @@ struct pg_conn char *dbName; /* database name */ char *pguser; /* Postgres username and password, if any */ char *pgpass; - bool pgpass_from_client; /* did password come from connect args? */ char *sslmode; /* SSL mode (require,prefer,allow,disable) */ #if defined(KRB5) || defined(ENABLE_GSS) || defined(ENABLE_SSPI) char *krbsrvname; /* Kerberos service name */ -- cgit v1.2.3