postgresql/contrib/dblink
Tom Lane d843ed2116 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:15 -04:00
..
expected Fix dblink's failure to report correct connection name in error messages. 2012-03-29 17:52:28 -04:00
sql Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
dblink--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
dblink--unpackaged--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
dblink.c Fix a couple of contrib/dblink bugs. 2012-04-03 20:43:15 -04:00
dblink.control Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
dblink.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Makefile Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00