postgres/contrib/dblink
Joe Conway c4613c3f49 Fix ancient connection leak in dblink
When using unnamed connections with dblink, every time a new
connection is made, the old one is leaked. Fix that.

This has been an issue probably since dblink was first committed.
Someone complained almost ten years ago, but apparently I decided
not to pursue it at the time, and neither did anyone else, so it
slipped between the cracks. Now that someone else has complained,
fix in all supported branches.

Discussion: (orig) https://postgr.es/m/flat/F680AB59-6D6F-4026-9599-1BE28880273D%40decibel.org#F680AB59-6D6F-4026-9599-1BE28880273D@decibel.org
Discussion: (new) https://postgr.es/m/flat/0A3221C70F24FB45833433255569204D1F6ADF8C@G01JPEXMBYT05
Reported by: Jim Nasby and Takayuki Tsunakawa
2017-03-11 13:33:30 -08:00
..
expected Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:47 -05:00
input Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:51 -04:00
output Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:51 -04:00
sql Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:47 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:47 -05: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 Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:48 +02:00
dblink.c Fix ancient connection leak in dblink 2017-03-11 13:33:30 -08: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
pg_service.conf Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:51 -04:00