| От | Andrew Dunstan |
|---|---|
| Тема | Re: Sleep functions |
| Дата | |
| Msg-id | 43090D13.20008@dunslane.net обсуждение исходный текст |
| Ответ на | Sleep functions (Michael Fuhr <mike@fuhr.org>) |
| Список | pgsql-hackers |
Michael Fuhr wrote: >What do people think of exposing pg_usleep() to the user? It's >sometimes useful to have a server-side sleep function, and people >do ask about it occasionally (e.g., Don Drake today in pgsql-admin). >It's easy enough to do in PL/Perl, PL/Tcl, etc., but since the >backend already has pg_usleep(), is there any reason not to expose >it? I'd propose both sleep() and usleep() functions. > > Be careful with documentation - IIRC on Windows the granularity of the Sleep() function is 1 millisec and pg_usleep rounds to the nearest millisec except for very low values where it rounds up. cheers andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера