Re: Performance of update - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Performance of update
Date
Msg-id D960CB61B694CF459DCFB4B0128514C201ED1B78@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Performance of update  (sam <sam.mahindrakar@gmail.com>)
List pgsql-general
sam wrote:
> Iam trying to update a database table with approx 45000 rows. Iam not
> updating all rows at a time. Iam updating 60 rows at a given time for
> example. and this is happening in a FOR LOOP. A function that has the
> update statements is called within the loop.
>
> The updates take too long.....is postgres slow in doing updates on
> large tables or is it because of the function call within the loop???

Could you post the functions and the EXPLAIN output
for the SQL statements in the functions?

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Survey: renaming/removing script binaries (createdb, createuser...)
Next
From: "Richard Broersma"
Date:
Subject: Re: casting from integer to boolean