diff options
author | Bruce Momjian <bruce@momjian.us> | 2013-12-03 11:11:56 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2013-12-03 11:12:25 -0500 |
commit | 9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e (patch) | |
tree | 659c15fa695ca0fc7ccbedde530ea54ead06e2f2 /doc/src | |
parent | 95e3d50539afcdcd4b75b4ac5baa9f8fc05324d9 (diff) | |
download | postgresql-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.sgml | 3 |
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> |