Re: tidscan not work ? Pg 8.4.5 + WinXP

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: tidscan not work ? Pg 8.4.5 + WinXP
Дата
Msg-id 4CF4D5760200002500037F7D@gw.wicourts.gov
обсуждение исходный текст
Ответ на tidscan not work ? Pg 8.4.5 + WinXP  (pasman pasmański <pasman.p@gmail.com>)
Ответы Re: tidscan not work ? Pg 8.4.5 + WinXP  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
pasman pasma*ski<pasman.p@gmail.com> wrote:

> How to use tid scans?

Write a query where they are the fastest way to retrieve the data,
and make sure your PostgreSQL installation is properly configured.

> This below not works :-( Always is used merge join.

> SELECT * FROM test1 join test2 on(test1.ctid=test2.ct)

You're reading through the entirety of two tables matching rows
between them.  What makes you think random access would be faster
than sequential?  If all this data is cached, then maybe random
access could win, but you would need to configure your PostgreSQL to
expect that.

Have you read this page:

http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server

-Kevin

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

Предыдущее
От: Mladen Gogala
Дата:
Сообщение: Re: SELECT INTO large FKyed table is slow
Следующее
От: Tom Lane
Дата:
Сообщение: Re: tidscan not work ? Pg 8.4.5 + WinXP