Hello,
dblink fails to close the unnamed connection as follows when a new unnamed connection is requested. The attached patch
fixesthis.
postgres=# select count(*) from pg_stat_activity;
count
-------
1
(1 row)
postgres=# select dblink_connect('dbname=postgres');
dblink_connect
----------------
OK
(1 row)
postgres=# select count(*) from pg_stat_activity;
count
-------
2
(1 row)
postgres=# select dblink_connect('dbname=postgres');
dblink_connect
----------------
OK
(1 row)
postgres=# select count(*) from pg_stat_activity;
count
-------
3
(1 row)
Regards
Takayuki Tsunakawa
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers