Re: ecpg thead-safe memory management + cleanup - Mailing list pgsql-patches

From Michael Meskes
Subject Re: ecpg thead-safe memory management + cleanup
Date
Msg-id 20070930113945.GA29963@feivel.credativ.de
Whole thread Raw
In response to ecpg thead-safe memory management + cleanup  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-patches
On Fri, Sep 28, 2007 at 03:00:54PM +0900, ITAGAKI Takahiro wrote:
> Here is a patch to get memory management to thread-safe.
> The auto_allocs global variable is split into per-thread variables
> and accessed separately in each thread.

Thanks. Committed to CVS HEAD.

> * Release all prepared statements on disconnection to avoid memory leaks
>   even if users forget to DEALLOCATE their statements before disconnection.

Oops, should have noticed this.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

pgsql-patches by date:

Previous
From: Simon Riggs
Date:
Subject: Re: set_ps_display during recovery
Next
From: Tom Lane
Date:
Subject: Re: set_ps_display during recovery