Re: proposal for smaller indexes on index-ordered tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal for smaller indexes on index-ordered tables
Дата
Msg-id 6669.1214343510@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: proposal for smaller indexes on index-ordered tables  ("Jeffrey Baker" <jwbaker@gmail.com>)
Ответы Re: proposal for smaller indexes on index-ordered tables
Список pgsql-hackers
"Jeffrey Baker" <jwbaker@gmail.com> writes:
> I'm quite aware of the problems of maintaining such a table and index, but
> the fact is that data warehouse type tables may never be updated after being
> created.  The particular application I'm struggling with does a SELECT ...
> INTO ... ORDER BY to make an ordered table for querying every night.  The
> problem is it takes longer, much longer, to create the index than to create
> the table, and in the end the index is as big as half the table anyway.

There's something wrong with that: sorting the table rows surely ought
to take longer than sorting the same number of (smaller) index entries.
Have you done any profiling to find out what the problem is?  Perhaps
there's something wrong with the setting of maintenance_work_mem (vs
work_mem).
        regards, tom lane


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

Предыдущее
От: Zoltan Boszormenyi
Дата:
Сообщение: Re: proposal for smaller indexes on index-ordered tables
Следующее
От: "Jeffrey Baker"
Дата:
Сообщение: Re: proposal for smaller indexes on index-ordered tables