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

Various ecpg cleanup

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Various ecpg cleanup
Date: 2007-09-28 02:24:17
Message-ID: 20070928110003.FB84.ITAGAKI.TAKAHIRO@oss.ntt.co.jp (view raw or flat)
Thread:
Lists: pgsql-patches
Hi,
I'd cleaned up some codes in ecpg.

* Release all prepared statements on disconnection to avoid memory leaks
  even if users forget to DEALLOCATE their statements before disconnection.
* Remove memset(0) from ECPGalloc() because calloc() has already done it.
* Add const to some global variables.
* Make pthread_mutex_lock() for Win32 thread-safe. (It might be a paranoia...)
* Add more pthread emulation codes for Win32 to reduce #ifdef WIN32.

I'll try to fix thread-safe issues in memory management and
SQL DESCRIPTOR based on this change.

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

Attachment: ecpg-cleanup.patch
Description: application/octet-stream (14.1 KB)

Responses

pgsql-patches by date

Next:From: Jaime CasanovaDate: 2007-09-28 03:28:14
Subject: too many variants of relation_open
Previous:From: Hiroshi SaitoDate: 2007-09-28 01:51:36
Subject: Re: Warning is adjusted of pgbench.

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