Re: consistent random order

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: consistent random order
Дата
Msg-id 20061130075822.GA85484@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: consistent random order  (Jeff Herrin <jeff@alternateimage.com>)
Ответы Re: consistent random order
Список 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SQL command join question
Следующее
От: "Bart Degryse"
Дата:
Сообщение: Re: UNICODE and PL/PGSQL