summaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-04-03 20:43:25 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-04-03 20:43:25 -0400
commit49281db951973fb0b83740d90e22b5b5c61f9173 (patch)
tree6ba9b45d3c8727f8c1f94fc26d030be0588b55c2 /src/tutorial/syscat.source
parente1a66794d3bea30eb96714cc0df2f7ae584632a4 (diff)
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.
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions