mal advice in FAQ 4.1.

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: mal advice in FAQ 4.1.
Date: 2007-10-09 10:15:55
Message-ID: 162867790710090315h7a3ae50boc4e423c8dd519313@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

I found lot of slow queries in some databases which I checked based on
advice 4.1. from FAQ,

To SELECT a random row, use:
SELECT col
FROM tab
ORDER BY random()
LIMIT 1;

It's robust and slow on bigger tables. Can we add some better solutions?

Regards
Pavel Stehule

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Trevor Talbot 2007-10-09 10:16:58 Re: Timezone database changes
Previous Message Pavel Stehule 2007-10-09 09:55:32 the best format of FAQ for you