Re: Testing pg_terminate_backend() - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: Testing pg_terminate_backend()
Date
Msg-id 20080418212822.GM572@alvh.no-ip.org
Whole thread Raw
In response to Re: Testing pg_terminate_backend()  (Magnus Hagander <magnus@hagander.net>)
List 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 by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Testing pg_terminate_backend()
Next
From: Bruce Momjian
Date:
Subject: Re: Testing pg_terminate_backend()