Unix Technical Forum

Re: EN_Destructor bug?

This is a discussion on Re: EN_Destructor bug? within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Thanks Tom, patch applied. Regards, Dave > -----Original Message----- > From: pgsql-odbc-owner@postgresql.org > [mailto gsql-odbc-owner@postgresql.org] On Behalf Of Tom ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 01:30 AM
Dave Page
 
Posts: n/a
Default Re: EN_Destructor bug?

Thanks Tom, patch applied.

Regards, Dave

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailtogsql-odbc-owner@postgresql.org] On Behalf Of Tom Hughes
> Sent: 19 October 2005 15:07
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] EN_Destructor bug?
>
> When EN_Destructor is called it searches through the connection array
> and destroys any connections which belong that environment.
> Unfortunately
> it doesn't NULL out the connection array entry afterwards so a future
> call to EN_Destructor can wind up trying to destroy that connection
> again if another environment has been allocated at the same address.
>
> Also, shouldn't EN_Destructor hold the CONNS critical section while it
> is playing with the connection array?
>
> The attached patch fixes both of these issues and seems to have fixed
> the crashes I was observing.
>
> Tom
>
> --
> Tom Hughes (thh@cyberscience.com)
> Software Engineer, Cyberscience Corporation
> http://www.cyberscience.com/
>
>


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com