slowness with holdable cursor - Mailing list pgsql-www

From Andrea Grassi
Subject slowness with holdable cursor
Date
Msg-id 000701c65e14$340bc020$e901027b@andreag
Whole thread Raw
Responses Re: slowness with holdable cursor  (Devrim GUNDUZ <devrim@commandprompt.com>)
List pgsql-www
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.



pgsql-www by date:

Previous
From: Robert Treat
Date:
Subject: Re: techdocs.postgresql.org php seems broke
Next
From: Devrim GUNDUZ
Date:
Subject: Re: slowness with holdable cursor