From 9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 3 Dec 2013 11:11:56 -0500 Subject: 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 --- doc/src/sgml/libpq.sgml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 955f248b13a..503a63a58bd 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -483,7 +483,8 @@ typedef struct with an entry having a null keyword pointer. The null pointer is returned if memory could not be allocated. Note that the current default values (val fields) - will depend on environment variables and other context. Callers + will depend on environment variables and other context. A + missing or invalid service file will be silently ignored. Callers must treat the connection options data as read-only. -- cgit v1.2.3