public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andrea Grassi <[email protected]>
To: [email protected]
Subject: slowness with holdable cursor
Date: Wed, 12 Apr 2006 11:33:49 +0200
Message-ID: <000701c65e14$340bc020$e901027b@andreag> (raw)

Hi.
I have a problem of fastness with "declare xxx cursor WITH HOLD". My
postgres version is 7.4.6
I have a table with 20000 rows named "base_a_artico"

If I use "declare a cursor with hold for select cdart,descr from
base_a_artico" outside a transaction I wait 2 seconds.
If I use the same statement (or the similar without "WITH HOLD") inside a
trasaction, I wait only 4 msec (milliseconds) !!!
I don't understand why this happens ....
I have to set some parameters in the postgresql.conf ?

thanks

Andrea Grassi


Le informazioni contenute in questo messaggio di posta elettronica sono di
natura confidenziale; qualsiasi pubblicazione, utilizzo o diffusione anche
parziale dello stesso non può essere effettuata senza autorizzazione e
potrebbe costituire un illecito penale ai sensi del Decreto Legs.vo N°
196/2003 sulla Protezione dei Dati Personali e del Codice Penale, Art.
617-621-635 bis oltre che della legge 547/93. Qualora non siate tra i
legittimi destinatari di questa e-mail Vi preghiamo cortesemente di
cancellarla dal Vostro sistema dopo aver notificato al mittente, rispondendo
alla comunicazione, l'errore da questi commesso.





view thread (2+ messages)  latest in thread

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: [email protected]
  Cc: [email protected]
  Subject: Re: slowness with holdable cursor
  In-Reply-To: <000701c65e14$340bc020$e901027b@andreag>

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

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