postgresql/contrib/dblink
Tom Lane 49281db951 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:25 -04:00
..
expected Fix dblink's failure to report correct connection name in error messages. 2012-03-29 17:52:38 -04:00
sql Change the interpretation of the primary_key_attnums parameter of 2010-06-15 20:29:01 +00:00
.gitignore Some more gitignore cleanups: cover contrib and PL regression test outputs. 2010-09-22 17:22:53 -04:00
dblink.c Fix a couple of contrib/dblink bugs. 2012-04-03 20:43:25 -04:00
dblink.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
dblink.sql.in Implement dblink_get_notify(). 2009-08-05 16:11:07 +00:00
Makefile
uninstall_dblink.sql Add missed function dblink_connect_u(text[,text]) to uninstall script 2010-06-07 15:14:36 +00:00