Various ecpg cleanup

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Various ecpg cleanup
Дата
Msg-id 20070928110003.FB84.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
обсуждение исходный текст
Ответы ecpg thead-safe memory management + cleanup  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Список 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

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Hiroshi Saito"
Дата:
Сообщение: Re: Warning is adjusted of pgbench.
Следующее
От: ITAGAKI Takahiro
Дата:
Сообщение: ecpg thead-safe memory management + cleanup