postgresql/src/bin/pg_basebackup
Andres Freund 7685963eeb Handle PQresultErrorField(PG_DIAG_SQLSTATE) returning NULL in streamutil.c.
In ff27db5d I missed that PQresultErrorField() may return NULL if
there's no sqlstate associated with an error.

Spotted-By: Coverity
Reported-By: Michael Paquier
Discussion: CAB7nPqQ3o10SY6NVdU4pjq85GQTN5tbbkq2gnNUh2fBNU3rKyQ@mail.gmail.com
Backpatch: 9.5, like ff27db5d
2015-08-12 17:35:50 +02:00
..
po Translation updates 2015-06-28 23:56:55 -04:00
t Work around an apparent bug in the Msys DTK perl's regex engine. 2015-08-10 10:42:05 -04:00
.gitignore Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
Makefile Fix parallel make risk with new check temp-install setup 2015-04-29 20:34:22 -04:00
nls.mk Translation updates 2014-12-15 16:19:59 -05:00
pg_basebackup.c pg_basebackup: Add --slot option 2015-07-28 20:31:35 -04:00
pg_receivexlog.c Don't start to stream after pg_receivexlog --create-slot. 2015-08-10 13:28:18 +02:00
pg_recvlogical.c Optionally don't error out due to preexisting slots in commandline utilities. 2015-07-12 22:15:20 +02:00
receivelog.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
receivelog.h pgindent run for 9.5 2015-05-23 21:35:49 -04:00
streamutil.c Handle PQresultErrorField(PG_DIAG_SQLSTATE) returning NULL in streamutil.c. 2015-08-12 17:35:50 +02:00
streamutil.h Optionally don't error out due to preexisting slots in commandline utilities. 2015-07-12 22:15:20 +02:00