pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-performance@postgresql.org
Cc: Cezariusz Marek <cezariusz.marek@comarch.pl>
Subject: Re: Slow cursor
Date: Wed, 26 Oct 2011 15:10:46 +0200
Message-ID: <201110261510.46828.andres@anarazel.de> (raw)
In-Reply-To: <DAC90718796346E5B308482692F95367@co382.comarch.net>
References: <DAC90718796346E5B308482692F95367@co382.comarch.net>

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



view thread (6+ messages)

Message-ID: <201110261510.46828.andres@anarazel.de>
Permalink:  ../201110261510.46828.andres@anarazel.de/
Also on:    postgresql.org/message-id/201110261510.46828.andres@anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andres@anarazel.de, cezariusz.marek@comarch.pl
  Subject: Re: Slow cursor
  In-Reply-To: <201110261510.46828.andres@anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox