Re: multi-threaded pgbench - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: multi-threaded pgbench
Date
Msg-id 20090724101248.93DD.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: multi-threaded pgbench  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List 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


Attachment

pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: When is a record NULL?
Next
From: Greg Stark
Date:
Subject: Re: When is a record NULL?