postgres/contrib/dblink
Tom Lane 230e779f58 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:30 -04:00
..
expected Fix dblink's failure to report correct connection name in error messages. 2012-03-29 17:52:43 -04:00
sql Fix dblink_build_sql_insert() and related functions to handle dropped 2010-06-15 19:04:22 +00:00
.gitignore Some more gitignore cleanups: cover contrib and PL regression test outputs. 2010-09-22 17:23:00 -04:00
dblink.c Fix a couple of contrib/dblink bugs. 2012-04-03 20:43:30 -04:00
dblink.h Restore dblink_current_query() to being a C-language function, so as to not 2009-06-09 17:41:02 +00:00
dblink.sql.in Restore dblink_current_query() to being a C-language function, so as to not 2009-06-09 17:41:02 +00:00
Makefile Remove references to READMEs from /contrib Makefiles. 2007-11-10 23:59:52 +00:00
uninstall_dblink.sql Add missed function dblink_connect_u(text[,text]) to uninstall script 2010-06-07 15:14:50 +00:00