Connection leak in dblink on duplicate names

From: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Connection leak in dblink on duplicate names
Date: 2010-06-08 06:25:16
Message-ID: 20100608152516.3609.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I found contrib/dblink leaks a connection or a small amout of memory
when dblink_connect() ends with a duplicate connection name error.
We should disconnect the connection before raise any ERRORs.

Patch attached.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center

Attachment Content-Type Size
dblink-connection-leak.patch application/octet-stream 549 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2010-06-08 06:56:52 Re: Functional dependencies and GROUP BY
Previous Message Koichi Suzuki 2010-06-08 06:19:43 pg_lesslog 1.4.2 beta now available