Jeff Janes <jeff.ja...@gmail.com> writes: > The problem is that the state is maintained only to an integer number of > milliseconds starting at 1, so it can take a number of attempts for the > random increment to jump from 1 to 2, and then from 2 to 3.
Hm ... fair point, if you assume that the underlying OS has a sleep resolution finer than 1ms. Otherwise it would not matter. > The attached patch changes the resolution of the state variable to > microseconds, but keeps the starting value at 1msec, i.e. 1000 usec. No patch seen here ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers