postgresql/contrib/dblink
Joe Conway f6cfc14e5a 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:22 -08:00
..
expected Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:46 -05:00
input Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:41 -04:00
output Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:41 -04:00
sql Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:46 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
dblink--1.0--1.1.sql Backpatch: Fix typo in update scripts for some contrib modules. 2014-08-25 18:30:46 +02:00
dblink--1.1.sql Create an improved FDW option validator function for contrib/dblink. 2012-10-10 16:53:08 -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:46 +02:00
dblink.c Fix ancient connection leak in dblink 2017-03-11 13:33:22 -08:00
dblink.control Create an improved FDW option validator function for contrib/dblink. 2012-10-10 16:53:08 -04:00
dblink.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:46 -05:00
pg_service.conf Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:41 -04:00