Re: Testing pg_terminate_backend()

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Testing pg_terminate_backend()
Date: 2008-04-18 21:28:22
Message-ID: 20080418212822.GM572@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2008-04-18 21:34:03 Re: Testing pg_terminate_backend()
Previous Message Magnus Hagander 2008-04-18 21:22:52 Re: Testing pg_terminate_backend()

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2008-04-18 21:34:03 Re: Testing pg_terminate_backend()
Previous Message Magnus Hagander 2008-04-18 21:22:52 Re: Testing pg_terminate_backend()