Re: multi-threaded pgbench

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: multi-threaded pgbench
Дата
Msg-id 20090724101248.93DD.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: multi-threaded pgbench  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-hackers
Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp> wrote:

> Greg Smith <gsmith@gregsmith.com> wrote:
> > That second code path, when --enable-thread-safety is turned off, crashes
> > and burns on my Linux system:
>
> It comes from confliction of identifiers.
> Renaming identifiers with #define can solve the errors:
> #define pthread_t                pg_pthread_t

Here is a patch to fix compile errors by identifier-renaming
when thread-safety is disabled on linux.

Also I fixed file descriptor leaks at the end of benchmark.

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


Вложения

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: When is a record NULL?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: When is a record NULL?