Re: Bug? Me or PostgreSQL.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Sawtell <csawtell(at)xtra(dot)co(dot)nz>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Bug? Me or PostgreSQL.
Date: 2001-02-19 05:37:01
Message-ID: 21084.982561021@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Christopher Sawtell <csawtell(at)xtra(dot)co(dot)nz> writes:
> How can this happen?

> chris=# select name from boys_names where
> boys_names.number=(random()*225+1)::int4;
> name
> --------
> Fred
> Gunnar
> Manuel
> Rainer
> (4 rows)

Er, what's your complaint exactly? It's not obvious to me that
there's anything wrong here. You seem to have gotten random
matches on four rows --- if that's ridiculously too low (or too
high) you'd better explain why you think so.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tod McQuillin 2001-02-19 05:47:14 Re: Bug? Me or PostgreSQL.
Previous Message Christopher Sawtell 2001-02-19 04:45:03 Bug? Me or PostgreSQL.