Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-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

pgsql-hackers by date

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

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group