Re: Slow cursor

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-performance(at)postgresql(dot)org
Cc: "Cezariusz Marek" <cezariusz(dot)marek(at)comarch(dot)pl>
Subject: Re: Slow cursor
Date: 2011-10-26 13:10:46
Message-ID: 201110261510.46828.andres@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

On Wednesday 26 Oct 2011 14:43:08 Cezariusz Marek wrote:
> Is there any known problem with slow cursors in PostgreSQL 8.4.5?
>
> I have a following query, which is slow (on my database it takes 11 seconds
> to execute), probably should be rewritten, but it doesn't matter here. The
> problem is, that in cursor, each fetch takes much longer (even few
> minutes!), while only the first one should be slow. Am I doing something
> wrong?
Does the problem persist if you play around with cursor_tuple_fraction?

Andres

In response to

  • Slow cursor at 2011-10-26 12:43:08 from Cezariusz Marek

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2011-10-26 14:45:29 Re: Anti join miscalculates row number?
Previous Message Cezariusz Marek 2011-10-26 12:56:51 Re: Slow cursor