From: Cezariusz Marek <cezariusz.marek@comarch.pl>
To: pgsql-performance@postgresql.org
Subject: Re: Slow cursor
Date: Wed, 26 Oct 2011 14:56:51 +0200
Message-ID: <D5B10E61F234404EAB20E0843327955F@co382.comarch.net> (raw)
In-Reply-To: <CAJY59_hVfrf0FAHDHan0AqfM42U9OMJvpDTkFN9M5xyHwZ6F_Q@mail.gmail.com>
References: <DAC90718796346E5B308482692F95367@co382.comarch.net>
<CAJY59_hVfrf0FAHDHan0AqfM42U9OMJvpDTkFN9M5xyHwZ6F_Q@mail.gmail.com>
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
____________________________________________________________________
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: cezariusz.marek@comarch.pl
Subject: Re: Slow cursor
In-Reply-To: <D5B10E61F234404EAB20E0843327955F@co382.comarch.net>
References: <DAC90718796346E5B308482692F95367@co382.comarch.net> <CAJY59_hVfrf0FAHDHan0AqfM42U9OMJvpDTkFN9M5xyHwZ6F_Q@mail.gmail.com> <D5B10E61F234404EAB20E0843327955F@co382.comarch.net>
* 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