Re: random escape function

From: Kris Jurka <books(at)ejurka(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Xavier Poinsard <xpoinsard(at)free(dot)fr>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: random escape function
Date: 2007-04-11 17:41:40
Message-ID: Pine.BSO.4.64.0704111339530.11607@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Wed, 11 Apr 2007, Tom Lane wrote:

> Kris Jurka <books(at)ejurka(dot)com> writes:
>> Also the spec doesn't say what rand is actually supposed to do. What is
>> the purpose of providing a rand function if you have to supply a seed
>> every single time.
>
> Is it really a seed? Maybe it's supposed to be the desired range of the
> output, or something.
>

All the documentation has to say is "RAND(integer) Random floating point
for seed integer)" so it clearly thinks it's a seed of some kind.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2007-04-12 07:49:55 Re: scrollable result sets performance problems
Previous Message Hartmut Benz 2007-04-11 15:11:09 Re: Small addition to PGInterval