Re: pgbench duration option - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgbench duration option
Date
Msg-id 20080819023932.GF4454@alvh.no-ip.org
Whole thread Raw
In response to Re: pgbench duration option  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
ITAGAKI Takahiro wrote:

> The only thing I worried about is portability issue. POSIX functions
> like alarm() or setitimer() are not available at least on Windows.
> I expect alarm() is available on all platforms except Win32 and
> used CreateTimerQueue() instead on Win32 in the new patch.
> (We have own implementation of setitimer() in the server core, but pgbench
>  cannot use the function because it is a client application.)

It wouldn't be unheard of to allow using timer.c into client domain
(cf. src/port/)

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: pgbench duration option
Next
From: Alvaro Herrera
Date:
Subject: Re: Improving non-joinable EXISTS subqueries