From: Jeff Herrin <jeff@alternateimage.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: consistent random order
Date: Thu, 30 Nov 2006 11:02:20 -0500 (EST)
Message-ID: <17835952.62811164902540562.JavaMail.root@srv161.carpathiahost.net> (raw)
In-Reply-To: <20061130075822.GA85484@winnie.fuhr.org>
Michael,
I think you may have solved my problem. We're still experimenting with it but I think setseed is going to work. Thank you very, 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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jeff@alternateimage.com, mike@fuhr.org
Subject: Re: consistent random order
In-Reply-To: <17835952.62811164902540562.JavaMail.root@srv161.carpathiahost.net>
* 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