"Omar Bettin" <o(dot)bettin(at)informaticaindustriale(dot)it> writes:
> I have tried 9.1.1 win64 version and when I am trying to declare a cursor
> for a very large view (lot of joins and aggregate functions),
> postgres is using around 3GB of memory and the query never returns.
Could we see a self-contained test case? I'm not about to try to
reverse-engineer the schema that goes with such a monster query.
http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
regards, tom lane