Re: consistent random order - Mailing list pgsql-sql

From Jeff Herrin
Subject Re: consistent random order
Date
Msg-id 17835952.62811164902540562.JavaMail.root@srv161.carpathiahost.net
Whole thread Raw
In response to Re: consistent random order  (Michael Fuhr <mike@fuhr.org>)
List pgsql-sql
Michael,

I think you may have solved my problem. We're still experimenting with it but I think setseed is going to work. Thank
youvery, very much!
 

Jeff Herrin

----- Original Message -----
From: Michael Fuhr <mike@fuhr.org>
To: Jeff Herrin <jeff@alternateimage.com>
Cc: Andreas Kretschmer <akretschmer@spamfence.net>, pgsql-sql@postgresql.org
Sent: Thursday, November 30, 2006 2:58:23 AM GMT-0500 US/Eastern
Subject: Re: [SQL] consistent random order

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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
              http://www.postgresql.org/docs/faq



pgsql-sql by date:

Previous
From: "Travis Whitton"
Date:
Subject: pg_xlog on separate drive
Next
From: Tom Lane
Date:
Subject: Re: pg_xlog on separate drive