Skip site navigation (1) Skip section navigation (2)

Re: ecpg thead-safe memory management + cleanup

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>,pgsql-patches(at)postgresql(dot)org
Subject: Re: ecpg thead-safe memory management + cleanup
Date: 2007-09-30 11:39:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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 Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

pgsql-patches by date

Next:From: Tom LaneDate: 2007-09-30 14:28:27
Subject: Re: set_ps_display during recovery
Previous:From: Simon RiggsDate: 2007-09-30 07:43:47
Subject: Re: set_ps_display during recovery

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group