pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christopher Sawtell <csawtell@xtra.co.nz>
Cc: pgsql-sql@postgresql.org
Subject: Re: Bug? Me or PostgreSQL.
Date: Mon, 19 Feb 2001 00:37:01 -0500
Message-ID: <21084.982561021@sss.pgh.pa.us> (raw)
In-Reply-To: <01021917450300.27125@berty>
References: <01021917450300.27125@berty>

Christopher Sawtell <csawtell@xtra.co.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



view thread (3+ messages)  latest in thread

Message-ID: <21084.982561021@sss.pgh.pa.us>
Permalink:  ../21084.982561021@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21084.982561021@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, csawtell@xtra.co.nz
  Subject: Re: Bug? Me or PostgreSQL.
  In-Reply-To: <21084.982561021@sss.pgh.pa.us>
  References: <01021917450300.27125@berty> <21084.982561021@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox