Обсуждение: pgAdmin III commit: Honour the PGPASSFILE environment variable (if prov

Поиск
Список
Период
Сортировка

pgAdmin III commit: Honour the PGPASSFILE environment variable (if prov

От
Ashesh Vashi
Дата:
Honour the PGPASSFILE environment variable (if provided)

Current implementation saves/retrieves password from the default .pgpass
(on non-windows)/pgpass.conf (on windows). But - actually when
connections are made libpq honours PGPASSFILE. Hence - we need to do the
same through pgAdmin.

While fetching the configuration file path, we will create the required
directory structure (if permissible and does not exist) to keep the
PGPASSFILE in it. And, create the file represented by PGPASSFILE with
0600 permission (if does not exist).

PATCH: Prasad Somwanshi
Reworked by: Sanket Mehta
Reviewed by: Ashesh Vashi & Sanet Mehta

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=fcbc54678b69f64dcc278fe0ed156cba7f1b2372
Author: Prasad Somwanshi <prasad.s@mail.com>

Modified Files
--------------
CHANGELOG                       |    5 +++
pgadmin/frm/frmConfig.cpp       |    3 --
pgadmin/frm/frmPgpassConfig.cpp |    8 ++---
pgadmin/schema/pgServer.cpp     |    5 ++-
pgadmin/utils/sysSettings.cpp   |   74 ++++++++++++++++++++++++++++++---------
5 files changed, 69 insertions(+), 26 deletions(-)