Re: Sleep functions

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: Sleep functions
Дата
Msg-id 7066b7c826c4a7559418e734d6ce6703@biglumber.com
обсуждение исходный текст
Ответ на Re: Sleep functions  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> In any case, I wonder how many people, not having a sleep() function,
> effect a delay with a busy loop; an example of such has been posted
> in response to the thread in pgsql-admin, and didn't the regression
> tests do so until recently?  That seems less desirable than a real
> sleep().

Exactly. If people are going to do it anyways, we might as well provide
a better interface. And sleep() is going to be less expensive than
any home-brewed sleep simulation.

> To others who've written their own sleep() function: what are you
> using it for?

To properly emulate other, slower, RDBMSs? :)

To simulate long-running queries without actually invoking them, and
to simulate concurrency of shorter queries.

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200508221055
https://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkMJ5/QACgkQvJuQZxSWSsi7DwCfcVKyclkFZ5swp/jBvrT3lwq8
P4cAnRh/1WwCAwM/v2bItKKJBMD8ARNT
=itDC
-----END PGP SIGNATURE-----




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Palle Girgensohn
Дата:
Сообщение: Re: Win32 unicode vs ICU
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Sleep functions