pgsql: libpq: change PQconndefaults() to ignore invalid service files

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: libpq: change PQconndefaults() to ignore invalid service files
Date: 2013-12-03 16:12:46
Message-ID: E1Vnsac-0004PJ-D5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-12-03 16:30:15 Re: pgsql: libpq: change PQconndefaults() to ignore invalid service files
Previous Message Andres Freund 2013-12-03 15:44:06 Re: pgsql: Fix a couple of bugs in MultiXactId freezing

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2013-12-03 16:18:07 Re: Extension Templates S03E11
Previous Message Bruce Momjian 2013-12-03 16:12:13 Re: pg_upgrade segfaults when given an invalid PGSERVICE value