"Gaetano Mendola" <mendola(at)bigfoot(dot)com> writes:
> Yes that's right it's help me,
> but here the optimizer have some problems:
What's the datatype of id_user, and why are you quoting the compared
constant in some cases but not others? I don't think the difference
has anything to do with the view here ...
regards, tom lane