"Andrus" <kobruleht2@xxxxxx> writes: > How to make this query to run fast ? Using something newer than 8.1 would help. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance