aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2013-12-03 11:11:56 -0500
committerBruce Momjian <bruce@momjian.us>2013-12-03 11:12:25 -0500
commit9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e (patch)
tree659c15fa695ca0fc7ccbedde530ea54ead06e2f2 /doc/src
parent95e3d50539afcdcd4b75b4ac5baa9f8fc05324d9 (diff)
downloadpostgresql-9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e.tar.gz
postgresql-9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e.zip
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/libpq.sgml3
1 files changed, 2 insertions, 1 deletions
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 <structfield>keyword</> pointer. The
null pointer is returned if memory could not be allocated. Note that
the current default values (<structfield>val</structfield> 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.
</para>