Merlin Moncure <mmonc...@gmail.com> writes:
> What I've been scratching my head over is what code exactly would
> cause an iterative sleep like the above.  The code is here:

>   pg_usleep(cur_delay * 1000L);

>   /* increase delay by a random fraction between 1X and 2X */
>   cur_delay += (int) (cur_delay *
>         ((double) random() / (double) MAX_RANDOM_VALUE) + 0.5);
>   /* wrap back to minimum delay when max is exceeded */
>   if (cur_delay > MAX_DELAY_MSEC)
>     cur_delay = MIN_DELAY_MSEC;

IIRC that coding is of relatively recent vintage.  The OP is probably
running some older version that increased cur_delay differently.

                        regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to