postgresql/contrib/dblink
Tom Lane 11efdb06ee 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.
2012-04-03 20:43:35 -04:00
..
expected Fix dblink_build_sql_insert() and related functions to handle dropped 2010-06-15 19:04:28 +00:00
sql Fix dblink_build_sql_insert() and related functions to handle dropped 2010-06-15 19:04:28 +00:00
.gitignore Some more gitignore cleanups: cover contrib and PL regression test outputs. 2010-09-22 17:23:05 -04:00
Makefile Remove references to READMEs from /contrib Makefiles. 2007-11-10 23:59:52 +00:00
dblink.c Fix a couple of contrib/dblink bugs. 2012-04-03 20:43:35 -04:00
dblink.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
dblink.sql.in Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
uninstall_dblink.sql Add missed function dblink_connect_u(text[,text]) to uninstall script 2010-06-07 15:15:03 +00:00