1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

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
This commit is contained in:
Bruce Momjian
2013-12-03 11:11:56 -05:00
parent 95e3d50539
commit 9e0a97f1c8
5 changed files with 23 additions and 14 deletions

View File

@ -19,6 +19,6 @@
extern int pg_fe_sendauth(AuthRequest areq, PGconn *conn);
extern char *pg_fe_getauthname(PQExpBuffer errorMessage);
extern char *pg_fe_getauthname(void);
#endif /* FE_AUTH_H */