Re: Randomize Result Set Order - Mailing list pgsql-general

From merlyn@stonehenge.com (Randal L. Schwartz)
Subject Re: Randomize Result Set Order
Date
Msg-id m1zo7gp7yk.fsf@halfdome.holdit.com
Whole thread Raw
In response to Randomize Result Set Order  (Ryan Mahoney <ryan@paymentalliance.net>)
Responses Re: Randomize Result Set Order
List pgsql-general
>>>>> "Ryan" == Ryan Mahoney <ryan@paymentalliance.net> writes:

Ryan> Is there an easy way to randomize the order that records get returned in?
Ryan> Don't imagine there is - but thought I'd ask  ;)

order by random()

I even threw it into my latest Linux Magazine column, expounding the
virtues of the official Database of RedHat.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: PostGres is not using indices in select, I would like it to because it is too slow !
Next
From: Bruce Momjian
Date:
Subject: Re: Encoding passwords