pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Fix a couple of contrib/dblink bugs.
5+ messages / 1 participants
[nested] [flat]
* pgsql: Fix a couple of contrib/dblink bugs.
@ 2012-04-04 00:44 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2012-04-04 00:44 UTC (permalink / raw)
To: pgsql-committers
Fix a couple of contrib/dblink bugs.
dblink_exec leaked temporary database connections if any error occurred
after connection setup, for example
SELECT dblink_exec('...connect string...', 'select 1/0');
Add a PG_TRY block to ensure PQfinish gets done when it is needed.
(dblink_record_internal is on the hairy edge of needing similar treatment,
but seems not to be actively broken at the moment.)
Also, in 9.0 and up, only one of the three functions using tuplestore
return mode was properly checking that the query context would allow
a tuplestore result.
Noted while reviewing dblink patch. Back-patch to all supported branches.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d843ed21164275dfbfefa486bb00bca91380cdf0
Modified Files
--------------
contrib/dblink/dblink.c | 204 ++++++++++++++++++++++++++--------------------
1 files changed, 115 insertions(+), 89 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix a couple of contrib/dblink bugs.
@ 2012-04-04 00:44 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2012-04-04 00:44 UTC (permalink / raw)
To: pgsql-committers
Fix a couple of contrib/dblink bugs.
dblink_exec leaked temporary database connections if any error occurred
after connection setup, for example
SELECT dblink_exec('...connect string...', 'select 1/0');
Add a PG_TRY block to ensure PQfinish gets done when it is needed.
(dblink_record_internal is on the hairy edge of needing similar treatment,
but seems not to be actively broken at the moment.)
Also, in 9.0 and up, only one of the three functions using tuplestore
return mode was properly checking that the query context would allow
a tuplestore result.
Noted while reviewing dblink patch. Back-patch to all supported branches.
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/8d2a5fb219aab954fe6642a2c1abdaa058ddeaef
Modified Files
--------------
contrib/dblink/dblink.c | 204 ++++++++++++++++++++++++++--------------------
1 files changed, 115 insertions(+), 89 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix a couple of contrib/dblink bugs.
@ 2012-04-04 00:44 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2012-04-04 00:44 UTC (permalink / raw)
To: pgsql-committers
Fix a couple of contrib/dblink bugs.
dblink_exec leaked temporary database connections if any error occurred
after connection setup, for example
SELECT dblink_exec('...connect string...', 'select 1/0');
Add a PG_TRY block to ensure PQfinish gets done when it is needed.
(dblink_record_internal is on the hairy edge of needing similar treatment,
but seems not to be actively broken at the moment.)
Also, in 9.0 and up, only one of the three functions using tuplestore
return mode was properly checking that the query context would allow
a tuplestore result.
Noted while reviewing dblink patch. Back-patch to all supported branches.
Branch
------
REL9_0_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/49281db951973fb0b83740d90e22b5b5c61f9173
Modified Files
--------------
contrib/dblink/dblink.c | 204 ++++++++++++++++++++++++++--------------------
1 files changed, 115 insertions(+), 89 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix a couple of contrib/dblink bugs.
@ 2012-04-04 00:44 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2012-04-04 00:44 UTC (permalink / raw)
To: pgsql-committers
Fix a couple of contrib/dblink bugs.
dblink_exec leaked temporary database connections if any error occurred
after connection setup, for example
SELECT dblink_exec('...connect string...', 'select 1/0');
Add a PG_TRY block to ensure PQfinish gets done when it is needed.
(dblink_record_internal is on the hairy edge of needing similar treatment,
but seems not to be actively broken at the moment.)
Also, in 9.0 and up, only one of the three functions using tuplestore
return mode was properly checking that the query context would allow
a tuplestore result.
Noted while reviewing dblink patch. Back-patch to all supported branches.
Branch
------
REL8_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/230e779f58e937834902501b28704a13f47f2d57
Modified Files
--------------
contrib/dblink/dblink.c | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix a couple of contrib/dblink bugs.
@ 2012-04-04 00:44 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2012-04-04 00:44 UTC (permalink / raw)
To: pgsql-committers
Fix a couple of contrib/dblink bugs.
dblink_exec leaked temporary database connections if any error occurred
after connection setup, for example
SELECT dblink_exec('...connect string...', 'select 1/0');
Add a PG_TRY block to ensure PQfinish gets done when it is needed.
(dblink_record_internal is on the hairy edge of needing similar treatment,
but seems not to be actively broken at the moment.)
Also, in 9.0 and up, only one of the three functions using tuplestore
return mode was properly checking that the query context would allow
a tuplestore result.
Noted while reviewing dblink patch. Back-patch to all supported branches.
Branch
------
REL8_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/11efdb06eef786abedffbbdcdb5c7fbd38416860
Modified Files
--------------
contrib/dblink/dblink.c | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2012-04-04 00:44 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04 00:44 pgsql: Fix a couple of contrib/dblink bugs. Tom Lane <tgl@sss.pgh.pa.us>
2012-04-04 00:44 pgsql: Fix a couple of contrib/dblink bugs. Tom Lane <tgl@sss.pgh.pa.us>
2012-04-04 00:44 pgsql: Fix a couple of contrib/dblink bugs. Tom Lane <tgl@sss.pgh.pa.us>
2012-04-04 00:44 pgsql: Fix a couple of contrib/dblink bugs. Tom Lane <tgl@sss.pgh.pa.us>
2012-04-04 00:44 pgsql: Fix a couple of contrib/dblink bugs. Tom Lane <tgl@sss.pgh.pa.us>
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