Allow password file name to be specified as a libpq connection parameter.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ba005f193d88a8404e81db3df223cf689d64d75e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-01-24T22:06:34Z
Releases: 10.0
Allow password file name to be specified as a libpq connection parameter.

Formerly an alternate password file could only be selected via the
environment variable PGPASSFILE; now it can also be selected via a
new connection parameter "passfile", corresponding to the conventions
for most other connection parameters.  There was some concern about
this creating a security weakness, but it was agreed that that argument
was pretty thin, and there are clear use-cases for handling password
files this way.

Julian Markwort, reviewed by Fabien Coelho, some adjustments by me

Discussion: https://postgr.es/m/a4b4f4f1-7b58-a0e8-5268-5f7db8e8ccaa@uni-muenster.de

Files

PathChange+/−
doc/src/sgml/libpq.sgml modified +25 −10
src/interfaces/libpq/fe-auth.c modified +3 −2
src/interfaces/libpq/fe-connect.c modified +51 −49
src/interfaces/libpq/libpq-int.h modified +2 −1

Documentation touched

Discussion