暂无图片
postgresql explain 问题
我来答
分享
暂无图片 匿名用户
postgresql explain 问题

explain 真实的跑了一个select后的计划如下: 

Aggregate (cost=20.75..20.76 rows=1 width=8) (actual time=0.020..0.020 rows=1 loops=1)
Output: count(*)
Buffers: shared hit=1
-> Seq Scan on alvin.t1 (cost=0.00..18.60 rows=860 width=0) (actual time=0.009..0.010 rows=6 loops
=1)
Output: id, name, age
Buffers: shared hit=1
Planning time: 15.457 ms
Execution time: 0.090 ms

为啥Execution time比Planning time 还小??

我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
严少安
暂无图片

有可能是统计信息未更新。

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏