[COMMITTERS] pgsql: Fix low-probability leaks of PGresult objects in the backend.

2017-06-15 Thread Tom Lane
Fix low-probability leaks of PGresult objects in the backend. We had three occurrences of essentially the same coding pattern wherein we tried to retrieve a query result from a libpq connection without blocking. In the case where PQconsumeInput failed (typically indicating a lost connection), all

[COMMITTERS] pgsql: Fix low-probability leaks of PGresult objects in the backend.

2017-06-15 Thread Tom Lane
Fix low-probability leaks of PGresult objects in the backend. We had three occurrences of essentially the same coding pattern wherein we tried to retrieve a query result from a libpq connection without blocking. In the case where PQconsumeInput failed (typically indicating a lost connection), all

[COMMITTERS] pgsql: Fix low-probability leaks of PGresult objects in the backend.

2017-06-15 Thread Tom Lane
Fix low-probability leaks of PGresult objects in the backend. We had three occurrences of essentially the same coding pattern wherein we tried to retrieve a query result from a libpq connection without blocking. In the case where PQconsumeInput failed (typically indicating a lost connection), all

[COMMITTERS] pgsql: Fix low-probability leaks of PGresult objects in the backend.

2017-06-15 Thread Tom Lane
Fix low-probability leaks of PGresult objects in the backend. We had three occurrences of essentially the same coding pattern wherein we tried to retrieve a query result from a libpq connection without blocking. In the case where PQconsumeInput failed (typically indicating a lost connection), all

[COMMITTERS] pgsql: Fix low-probability leaks of PGresult objects in the backend.

2017-06-15 Thread Tom Lane
Fix low-probability leaks of PGresult objects in the backend. We had three occurrences of essentially the same coding pattern wherein we tried to retrieve a query result from a libpq connection without blocking. In the case where PQconsumeInput failed (typically indicating a lost connection), all

[COMMITTERS] pgsql: Fix low-probability leaks of PGresult objects in the backend.

2017-06-15 Thread Tom Lane
Fix low-probability leaks of PGresult objects in the backend. We had three occurrences of essentially the same coding pattern wherein we tried to retrieve a query result from a libpq connection without blocking. In the case where PQconsumeInput failed (typically indicating a lost connection), all