Re: Planner estimates and cast operations ,...

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Planner estimates and cast operations ,...
Дата
Msg-id 20060904170444.GA8543@wolff.to
обсуждение исходный текст
Ответ на Re: Planner estimates and cast operations ,...  (Hans-Juergen Schoenig <postgres@cybertec.at>)
Ответы Re: Planner estimates and cast operations ,...  (Hans-Juergen Schoenig <postgres@cybertec.at>)
Список pgsql-hackers
On Mon, Sep 04, 2006 at 17:19:37 +0200, Hans-Juergen Schoenig <postgres@cybertec.at> wrote:
> 
> i thought about creating an index on the expression but the problem  
> is that this is hardly feasable.
> in 8.0 (what i have here) this would block the table and i would run  

That may be hard to deal with.

> out of disk space as well. this is a 600 gb biest :(

I wouldn't expect this to be a problem. If you have 10^9 rows, I would expect
the index to be less than 10% of you current size. If you are so close to
your disk space limit that that is a problem, you have a problem in any case.

> 
> what about the planner approach?
> this would solve the problem for some other issues as well. an index  
> might not be flexible enough :(.

If you disable sorting you might be able to get it to switch plans. Lying
about the amount of work memory so that the planner thinks the hash
will fit in memory despite its misguessing the number of buckets might also
help.


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

Предыдущее
От: Mark Cave-Ayland
Дата:
Сообщение: Re: Hierarchical Queries--Status
Следующее
От: Hans-Juergen Schoenig
Дата:
Сообщение: Re: Planner estimates and cast operations ,...