Re: slow line insert - Mailing list pgsql-general

From Tom Lane
Subject Re: slow line insert
Date
Msg-id 7780.995299329@sss.pgh.pa.us
Whole thread Raw
In response to slow line insert  ("Vilson farias" <vilson.farias@digitro.com.br>)
List pgsql-general
"Vilson farias" <vilson.farias@digitro.com.br> writes:
> The problem is realted with "1 | serv_acaoserv | 154406" tuple, wich
> takes 5-10 secs to be updated, whether it's called from this stored
> procedure or from a simple UPDATE clause. All other tuples goes fine,
> update time is about 10-30ms.

Have you updated that particular row many more times than the rest?
If so, you have a lot of dead versions of the row that need to be
cleaned out.

> I did not tried a vacuumdb yet.

You should run vacuum on a regular basis.

            regards, tom lane

pgsql-general by date:

Previous
From: Liz Pelletier
Date:
Subject: db & table names
Next
From: Alessio Bragadini
Date:
Subject: Re: SQL for CREATE RULE