I have a simple update request (the foo column type is BOOLEAN (false by default)):
update tablename set foo = true where id = 234;
for which "id" is set to the (primary) key, and if I run "explain analysis", I got:
Index Cond: (id = 234) Total runtime: 0.358 ms
but still I have a lot of inexplicable queries with a slow log (pgfouine), which took more than 200 s (?!):
Times executed: 99, Av. duration (s): 70
can someone explain what is the reason? (1.5 million rows in a table, postgresql 8.4)
source share