> Maybe we can disuss that problem here again?! What exactly means
> "max_expr_depth"? Thanks for any help
If I'm not mistaken, max_expr_depth is used to catch runaway recursion
(view a is select * from b, view b is select * from a).
It's a tunable in postgresql.conf. Toss a couple of 0's behind the
number and uncomment the line.