pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix out-of-memory error handling in ParameterDescription message
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix out-of-memory error handling in ParameterDescription message
@ 2015-12-14 16:56  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 6+ messages in thread

From: Heikki Linnakangas @ 2015-12-14 16:56 UTC (permalink / raw)
  To: pgsql-committers

Fix out-of-memory error handling in ParameterDescription message processing.

If libpq ran out of memory while constructing the result set, it would hang,
waiting for more data from the server, which might never arrive. To fix,
distinguish between out-of-memory error and not-enough-data cases, and give
a proper error message back to the client on OOM.

There are still similar issues in handling COPY start messages, but let's
handle that as a separate patch.

Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7b96bf445a42b1cb2a435854f9825c38253f79a2

Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c |   64 +++++++++++++++++++++++++++++------
1 file changed, 53 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix out-of-memory error handling in ParameterDescription message
@ 2015-12-14 16:56  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 6+ messages in thread

From: Heikki Linnakangas @ 2015-12-14 16:56 UTC (permalink / raw)
  To: pgsql-committers

Fix out-of-memory error handling in ParameterDescription message processing.

If libpq ran out of memory while constructing the result set, it would hang,
waiting for more data from the server, which might never arrive. To fix,
distinguish between out-of-memory error and not-enough-data cases, and give
a proper error message back to the client on OOM.

There are still similar issues in handling COPY start messages, but let's
handle that as a separate patch.

Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/affae5e981d624735791ab897ff822118005ab44

Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c |   64 +++++++++++++++++++++++++++++------
1 file changed, 53 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix out-of-memory error handling in ParameterDescription message
@ 2015-12-14 16:56  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 6+ messages in thread

From: Heikki Linnakangas @ 2015-12-14 16:56 UTC (permalink / raw)
  To: pgsql-committers

Fix out-of-memory error handling in ParameterDescription message processing.

If libpq ran out of memory while constructing the result set, it would hang,
waiting for more data from the server, which might never arrive. To fix,
distinguish between out-of-memory error and not-enough-data cases, and give
a proper error message back to the client on OOM.

There are still similar issues in handling COPY start messages, but let's
handle that as a separate patch.

Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/34d136f92ac65c4ed8ede9459217ef900d603f97

Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c |   64 +++++++++++++++++++++++++++++------
1 file changed, 53 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix out-of-memory error handling in ParameterDescription message
@ 2015-12-14 16:56  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 6+ messages in thread

From: Heikki Linnakangas @ 2015-12-14 16:56 UTC (permalink / raw)
  To: pgsql-committers

Fix out-of-memory error handling in ParameterDescription message processing.

If libpq ran out of memory while constructing the result set, it would hang,
waiting for more data from the server, which might never arrive. To fix,
distinguish between out-of-memory error and not-enough-data cases, and give
a proper error message back to the client on OOM.

There are still similar issues in handling COPY start messages, but let's
handle that as a separate patch.

Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/dee1ed54f80345250cde37632673b139742024b6

Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c |   64 +++++++++++++++++++++++++++++------
1 file changed, 53 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix out-of-memory error handling in ParameterDescription message
@ 2015-12-14 16:56  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 6+ messages in thread

From: Heikki Linnakangas @ 2015-12-14 16:56 UTC (permalink / raw)
  To: pgsql-committers

Fix out-of-memory error handling in ParameterDescription message processing.

If libpq ran out of memory while constructing the result set, it would hang,
waiting for more data from the server, which might never arrive. To fix,
distinguish between out-of-memory error and not-enough-data cases, and give
a proper error message back to the client on OOM.

There are still similar issues in handling COPY start messages, but let's
handle that as a separate patch.

Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1e23caae30f5f7c841aa50eaa99b0145576e520b

Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c |   64 +++++++++++++++++++++++++++++------
1 file changed, 53 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix out-of-memory error handling in ParameterDescription message
@ 2015-12-14 16:56  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 6+ messages in thread

From: Heikki Linnakangas @ 2015-12-14 16:56 UTC (permalink / raw)
  To: pgsql-committers

Fix out-of-memory error handling in ParameterDescription message processing.

If libpq ran out of memory while constructing the result set, it would hang,
waiting for more data from the server, which might never arrive. To fix,
distinguish between out-of-memory error and not-enough-data cases, and give
a proper error message back to the client on OOM.

There are still similar issues in handling COPY start messages, but let's
handle that as a separate patch.

Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4b58ded7498fccac1526cb27788dd7baad651b14

Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c |   64 +++++++++++++++++++++++++++++------
1 file changed, 53 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2015-12-14 16:56 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-14 16:56 pgsql: Fix out-of-memory error handling in ParameterDescription message Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-12-14 16:56 pgsql: Fix out-of-memory error handling in ParameterDescription message Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-12-14 16:56 pgsql: Fix out-of-memory error handling in ParameterDescription message Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-12-14 16:56 pgsql: Fix out-of-memory error handling in ParameterDescription message Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-12-14 16:56 pgsql: Fix out-of-memory error handling in ParameterDescription message Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-12-14 16:56 pgsql: Fix out-of-memory error handling in ParameterDescription message Heikki Linnakangas <heikki.linnakangas@iki.fi>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox