Re: random - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: random
Date
Msg-id 200103052145.QAA04799@candle.pha.pa.us
Whole thread Raw
In response to Re: random  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > But random returns a random value from 0-1, right?  How does that work
> > in ORDER BY?
> 
> What's the problem?  Each row gets a different random value, then we
> sort.

Oh, I see.  Nifty.  I am used to seeing a column name or number in ORDER
BY.  Why doesn't the parser see this as a column number?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Optimizing Query
Next
From: Boulat Khakimov
Date:
Subject: Extending PostgreSQL Using C