slow update & index question - Mailing list pgsql-general

From Williams, Travis L, NPONS
Subject slow update & index question
Date
Msg-id AB815D267EC31A4693CC24D234F8291602B03100@ACCLUST02EVS1.ugd.att.com
Whole thread Raw
Responses Re: slow update & index question  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: slow update & index question  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-general
I have a script that is updating the DB by reading in a file with 467 lines.  Each file is named by the shelf the
informationwas gotten from.  Each line is tab seperated and consists of a column name and the value that it should be
updateto.  The update line in the perl script looks like this: update table set "column name" = 'value' where
"Shelf_Name"= '$shelf'  

Now this works.. but it takes almost 1 minute to do the updates.  With nothing else at all touching the DB..  is this
normal? The DB is index'd on the Shelf_Name column.. but how do I know if it is using the index.. or does that not even
matterin this case? 

Travis

pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Can't write lock file
Next
From: MT
Date:
Subject: Can't write lock file