Re: [HACKERS] Microseconds granularity SIGALRM interrupt support

2006-10-20 Thread Tom Lane
NikhilS <[EMAIL PROTECTED]> writes: > Do we have any function in the postgres codebase which provides microseconds > level of delay coupled with SIGALRM support? On most Unixen the resolution of SIGALRM is millisecond(s), so you'd be living in a dream world if you assumed it would work.

[HACKERS] Microseconds granularity SIGALRM interrupt support

2006-10-20 Thread NikhilS
Hi, Currently we have enable_sig_alarm() which provides millisecond level granularity in specifying delay. I tried using it by just specifying nonzero value for the timeval.it_value.tv_usec field before calling setitimer, but didn't seem to work well. Do we have any function in the postgres cod