Re: Slow cursor

From: "Cezariusz Marek" <cezariusz(dot)marek(at)comarch(dot)pl>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Slow cursor
Date: 2011-10-26 12:56:51
Message-ID: D5B10E61F234404EAB20E0843327955F@co382.comarch.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Gregg Jaskiewicz wrote:
> Do you really need to query the catalogues ? That on its own is not a
> good idea if you want something to run fast and frequently.

I know, but I've used it just to show the problem with cursors. I have the same problem
with other slow queries, which execute within x seconds in psql or pgAdmin, but for loops
in functions it takes at least x seconds to fetch each row. So please just imagine, that
it's an other slow query.

--
____________________________________________________________________
Cezariusz Marek                   mob: +48 608 646 494
http://www.comarch.com/   tel: +48 33 815 0734
____________________________________________________________________

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Andres Freund 2011-10-26 13:10:46 Re: Slow cursor
Previous Message Linos 2011-10-26 12:55:36 Re: CTE vs Subquery