On Mon, Sep 04, 2006 at 17:19:37 +0200,
  Hans-Juergen Schoenig <[EMAIL PROTECTED]> 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.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply via email to