Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f25Ljnx46157 for ; Mon, 5 Mar 2001 16:45:49 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id QAA04799; Mon, 5 Mar 2001 16:45:37 -0500 (EST) From: Bruce Momjian Message-Id: <200103052145.QAA04799@candle.pha.pa.us> Subject: Re: random In-Reply-To: <20932.983828071@sss.pgh.pa.us> "from Tom Lane at Mar 5, 2001 04:34:31 pm" To: Tom Lane Date: Mon, 5 Mar 2001 16:45:37 -0500 (EST) CC: Jelle Ouwerkerk , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200103/70 X-Sequence-Number: 1715 > Bruce Momjian 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, Pennsylvania 19026