On Wed, Dec 28, 2011 at 3:02 PM, Matteo Beccati <php(at)beccati(dot)com> wrote:
> The query eventually completed in more than 18h. For comparison a normal
> run doesn't take more than 1m for that specific step.
>
> Do you think that bad stats and suboptimal plan alone could explain such
> a behaviour?
Did you get the explain analyze output?