Tatsuhito Kasahara wrote:
> dblink generates orphaned connections when we failed on performing dblink() function.
> # But it occurs only when dblink('conn_str', 'sql', true). See following examples.
> I think that the dblink should not ereport() before PQfinish(conn) in
> dblink_record_internal() when we use temporary connection.
Thanks for the report. Patch applied to HEAD and 8.4 branch. Problem
introduced in 8.4
Joe