From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Lionel Bouton <lionel-subscription(at)bouton(dot)name>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow |
Date: | 2005-05-11 15:40:36 |
Message-ID: | 42822774.9090508@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-patches |
Bruce Momjian wrote:
>Andrew Dunstan wrote:
>
>
>>Bruce Momjian wrote:
>>
>>
>>
>>> */
>>>! #ifndef WIN32
>>>! sleep(sleep_secs); /* Unix sleep is seconds */
>>>! #else
>>>! sleep(sleep_secs * 1000); /* Win32 sleep() is milliseconds */
>>>
>>>
>>>
>>>
>>Shouldn't the be Sleep with a capital S? see
>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/sleep.asp
>>
>>
>
>I was wondering about that, so I compiled it with MinGW and sleep()
>worked fine, so I stuck with that. In fact, I just tried Sleep() and
>that didn't work. It said:
>
> C:/DOCUME~1/BRUCEM~1/LOCALS~1/Temp/ccMLbaaa.o(.text+0x27):x.c: undefined
> reference to `Sleep'
>
>Maybe if I added some includes it would work, but sleep() seemed safest.
>
>
>
Strange ... as long as you #include <windows.h> it should be fine, and
pg_autovacuum.c already does include it.
Anyway, whatever works, I guess.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-05-11 15:41:19 | Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow |
Previous Message | Bruce Momjian | 2005-05-11 15:13:41 | Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-05-11 15:41:19 | Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow |
Previous Message | Bruce Momjian | 2005-05-11 15:13:41 | Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow |