Re: Planner estimates and cast operations ,... - Mailing list pgsql-hackers

From Bruno Wolff III
Subject Re: Planner estimates and cast operations ,...
Date
Msg-id 20060904170444.GA8543@wolff.to
Whole thread Raw
In response to Re: Planner estimates and cast operations ,...  (Hans-Juergen Schoenig <postgres@cybertec.at>)
Responses Re: Planner estimates and cast operations ,...  (Hans-Juergen Schoenig <postgres@cybertec.at>)
List 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 by date:

Previous
From: Mark Cave-Ayland
Date:
Subject: Re: Hierarchical Queries--Status
Next
From: Hans-Juergen Schoenig
Date:
Subject: Re: Planner estimates and cast operations ,...