libpq: change PQconndefaults() to ignore invalid service files
Previously missing or invalid service files returned NULL. Also fix
pg_upgrade to report "out of memory" for a null return from
PQconndefaults().
Patch by Steve Singer, rewritten by me
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e
Modified Files
--------------
contrib/pg_upgrade/server.c | 3 +++
doc/src/sgml/libpq.sgml | 3 ++-
src/interfaces/libpq/fe-auth.c | 2 +-
src/interfaces/libpq/fe-auth.h | 2 +-
src/interfaces/libpq/fe-connect.c | 27 ++++++++++++++++-----------
5 files changed, 23 insertions(+), 14 deletions(-)