2015-04-13 07:24:12 CEST LOG: duration: 21427.285 ms plan:
Query Text: UPDATE "User" set last_stick=NOW() where id=2;
Update on "User" (cost=0.00..2.03 rows=1 width=286) (actual time=21427.282..21427.282 rows=0 loops=1)
-> Seq Scan on "User" (cost=0.00..2.03 rows=1 width=286) (actual time=0.020..0.022 rows=1 loops=1)
Filter: (id = 2)
Rows Removed by Filter: 1
在 300 毫秒到 32 秒之间更新包含 2 行的表中的一行。(似乎完全随机,更新过程中系统处于空闲状态。)。有什么有用的提示或工具可以用来窥探 postgres 到底在做什么或在等待什么......
注意:postgres 在 x64 windows 环境中