postgresql/src/interfaces/libpq
Heikki Linnakangas 992c6f0d2c Improve handling of out-of-memory in libpq.
If an allocation fails in the main message handling loop, pqParseInput3
or pqParseInput2, it should not be treated as "not enough data available
yet". Otherwise libpq will wait indefinitely for more data to arrive from
the server, and gets stuck forever.

This isn't a complete fix - getParamDescriptions and getCopyStart still
have the same issue, but it's a step in the right direction.

Michael Paquier and me. Backpatch to all supported versions.
2015-07-07 18:45:17 +03:00
..
po Translation updates 2015-05-18 08:38:34 -04:00
test pgindent run for 9.4 2014-05-06 12:12:18 -04:00
.gitignore Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:16:19 -04:00
bcc32.mak Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:16:19 -04:00
exports.txt Revert "Add libpq function PQhostaddr()." 2014-11-29 12:34:12 -05:00
fe-auth.c Fix libpq's behavior when /etc/passwd isn't readable. 2015-01-11 12:35:47 -05:00
fe-auth.h Fix libpq's behavior when /etc/passwd isn't readable. 2015-01-11 12:35:47 -05:00
fe-connect.c Fix misparsing of empty value in conninfo_uri_parse_params(). 2015-02-21 12:59:35 -05:00
fe-exec.c Fix documentation for libpq's PQfn(). 2015-03-08 13:35:37 -04:00
fe-lobj.c Cast to (void *) rather than (int *) when passing int64's to PQfn(). 2015-03-08 13:58:36 -04:00
fe-misc.c Fix potential deadlock with libpq non-blocking mode. 2015-02-23 13:32:39 +02:00
fe-print.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
fe-protocol2.c Improve handling of out-of-memory in libpq. 2015-07-07 18:45:17 +03:00
fe-protocol3.c Improve handling of out-of-memory in libpq. 2015-07-07 18:45:17 +03:00
fe-secure.c Replace a bunch more uses of strncpy() with safer coding. 2015-01-24 13:05:45 -05:00
libpq-events.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
libpq-events.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
libpq-fe.h Revert "Add libpq function PQhostaddr()." 2014-11-29 12:34:12 -05:00
libpq-int.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
libpq.rc.in Stamp 9.4.4. 2015-06-09 15:29:38 -04:00
Makefile Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:16:19 -04:00
nls.mk Translation updates 2013-09-02 02:43:18 -04:00
pg_service.conf.sample Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pqexpbuffer.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pqexpbuffer.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pthread-win32.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
README Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win32.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
win32.h Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
win32.mak Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:16:19 -04:00

src/interfaces/libpq/README

This directory contains the C version of Libpq, the POSTGRES frontend library.