pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Improve handling of out-of-memory in libpq. 7+ messages / 1 participants [nested] [flat]
* pgsql: Improve handling of out-of-memory in libpq. @ 2015-07-07 15:50 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-07 15:50 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/414bef30bfab20451e15fe799642b52166db8c34 Modified Files -------------- src/interfaces/libpq/fe-protocol2.c | 51 ++++++++++++++++++++-------- src/interfaces/libpq/fe-protocol3.c | 63 +++++++++++++++++++++++++---------- 2 files changed, 83 insertions(+), 31 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] 7+ messages in thread
* pgsql: Improve handling of out-of-memory in libpq. @ 2015-07-07 15:50 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-07 15:50 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/28c38396eda2d923974b99013b27e89a9093c766 Modified Files -------------- src/interfaces/libpq/fe-protocol2.c | 51 ++++++++++++++++++++-------- src/interfaces/libpq/fe-protocol3.c | 63 +++++++++++++++++++++++++---------- 2 files changed, 83 insertions(+), 31 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] 7+ messages in thread
* pgsql: Improve handling of out-of-memory in libpq. @ 2015-07-07 15:50 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-07 15:50 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/992c6f0d2ca839ba54279fbc1a5d5e01e2e18f58 Modified Files -------------- src/interfaces/libpq/fe-protocol2.c | 51 ++++++++++++++++++++-------- src/interfaces/libpq/fe-protocol3.c | 63 +++++++++++++++++++++++++---------- 2 files changed, 83 insertions(+), 31 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] 7+ messages in thread
* pgsql: Improve handling of out-of-memory in libpq. @ 2015-07-07 15:50 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-07 15:50 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fcdac561405e14e1ce9f8c07a53e7d4983afa7a0 Modified Files -------------- src/interfaces/libpq/fe-protocol2.c | 51 ++++++++++++++++++++-------- src/interfaces/libpq/fe-protocol3.c | 63 +++++++++++++++++++++++++---------- 2 files changed, 83 insertions(+), 31 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] 7+ messages in thread
* pgsql: Improve handling of out-of-memory in libpq. @ 2015-07-07 15:50 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-07 15:50 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6d88c1fc5f2eba341186e13dc9ab4a0ca8eeeeba Modified Files -------------- src/interfaces/libpq/fe-protocol2.c | 51 ++++++++++++++++++++-------- src/interfaces/libpq/fe-protocol3.c | 63 +++++++++++++++++++++++++---------- 2 files changed, 83 insertions(+), 31 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] 7+ messages in thread
* pgsql: Improve handling of out-of-memory in libpq. @ 2015-07-07 15:50 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-07 15:50 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/dcbaf4b373b46f696ca58f39a99b07c0a6782d07 Modified Files -------------- src/interfaces/libpq/fe-protocol2.c | 51 ++++++++++++++++++++-------- src/interfaces/libpq/fe-protocol3.c | 63 +++++++++++++++++++++++++---------- 2 files changed, 83 insertions(+), 31 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] 7+ messages in thread
* pgsql: Improve handling of out-of-memory in libpq. @ 2015-07-07 15:50 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2015-07-07 15:50 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/2b189c7ec1ffd1e626484621c515285bf5d0d5e3 Modified Files -------------- src/interfaces/libpq/fe-protocol2.c | 51 ++++++++++++++++++++-------- src/interfaces/libpq/fe-protocol3.c | 63 +++++++++++++++++++++++++---------- 2 files changed, 83 insertions(+), 31 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] 7+ messages in thread
end of thread, other threads:[~2015-07-07 15:50 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-07-07 15:50 pgsql: Improve handling of out-of-memory in libpq. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-07 15:50 pgsql: Improve handling of out-of-memory in libpq. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-07 15:50 pgsql: Improve handling of out-of-memory in libpq. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-07 15:50 pgsql: Improve handling of out-of-memory in libpq. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-07 15:50 pgsql: Improve handling of out-of-memory in libpq. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-07 15:50 pgsql: Improve handling of out-of-memory in libpq. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2015-07-07 15:50 pgsql: Improve handling of out-of-memory in libpq. 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