Re: performance and number of selected columns

Поиск
Список
Период
Сортировка
От Dirk Lutzebaeck
Тема Re: performance and number of selected columns
Дата
Msg-id 14633.22674.316652.283601@ampato.core.aeccom.com
обсуждение исходный текст
Ответ на performance and number of selected columns  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
Список pgsql-general
Dirk Lutzebaeck writes:
 >
 > Hi,
 >
 > say I have three tables a,b,c with lots of columns (say 10 for each
 > table). Using psql command line, why does
 >
 >  SELECT a.*,b.*,c.* FROM a,b,c
 >
 > takes much more longer (in my specifc case 3 times) than only
 > selecting one column like
 >
 >  SELECT a.oid, b.oid, c.oid FROM a,b,c.
 >
 > This is on 7.0. Can I play with buffer sizes? Indexes exist on most
 > of the columns. Columns in the second line can be arbitrary.

Two things two add:

- EXPLAIN shosw the same results in both cases
- currently I was working with ~ 500 rows

Dirk


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

Предыдущее
От: Barry Lind
Дата:
Сообщение: How do you rebind/reexecute a query without reparsing it?
Следующее
От: Ron Peterson
Дата:
Сообщение: Re: Re: [HACKERS] Postgresql OO Patch