Re: consistent random order

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Jeff Herrin <jeff(at)alternateimage(dot)com>
Cc: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: consistent random order
Date: 2006-11-30 07:58:23
Message-ID: 20061130075822.GA85484@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Nov 29, 2006 at 12:32:56PM -0500, Jeff Herrin wrote:
> I don't think cursors are going to help in this case. The order
> by random() is still going to give different result sets on different
> pages.

Have you tried using setseed() to seed the random number generator
to the same value before each query?

--
Michael Fuhr

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bart Degryse 2006-11-30 08:15:40 Re: UNICODE and PL/PGSQL
Previous Message Tom Lane 2006-11-30 01:02:34 Re: SQL command join question