Re: Testing pg_terminate_backend()

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Testing pg_terminate_backend()
Дата
Msg-id 20080418212822.GM572@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Testing pg_terminate_backend()  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-patches
Magnus Hagander wrote:
> Tom Lane wrote:

> > >         SLEEP=`expr $RANDOM \* $REGRESSION_DURATION / 32767`
> >
> > Uh, where's the randomness coming from?
>
> ... but I should probably wait until that one is answered or fixed, I
> guess :-)

bash.

       RANDOM Each time this parameter is referenced, a random integer between
              0 and 32767 is generated.  The sequence of random numbers may be
              initialized by assigning a value to RANDOM.  If RANDOM is unset,
              it loses its special properties,  even  if  it  is  subsequently
              reset.


--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Testing pg_terminate_backend()
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Testing pg_terminate_backend()