Re: random escape function - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: random escape function
Date
Msg-id Pine.BSO.4.64.0704111339530.11607@leary.csoft.net
Whole thread Raw
In response to Re: random escape function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-jdbc

On Wed, 11 Apr 2007, Tom Lane wrote:

> Kris Jurka <books@ejurka.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

pgsql-jdbc by date:

Previous
From: Hartmut Benz
Date:
Subject: Re: Small addition to PGInterval
Next
From: "Radim Kolar SF.NET"
Date:
Subject: scrollable result sets performance problems