加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

PostgreSQL`分析`与`分析`

发布时间:2020-12-13 16:05:19 所属栏目:百科 来源:网络整理
导读:explain analyse select true;╔════════════════════════════════════════════════════════════════════════════════════╗║ QUERY PLAN ║╠══════════
explain analyse select true;
╔════════════════════════════════════════════════════════════════════════════════════╗
║                                     QUERY PLAN                                     ║
╠════════════════════════════════════════════════════════════════════════════════════╣
║ Result  (cost=0.00..0.01 rows=1 width=0) (actual time=0.016..0.016 rows=1 loops=1) ║
║ Planning time: 0.073 ms                                                            ║
║ Execution time: 0.109 ms                                                           ║
╚════════════════════════════════════════════════════════════════════════════════════╝

explain analyze select true;
╔════════════════════════════════════════════════════════════════════════════════════╗
║                                     QUERY PLAN                                     ║
╠════════════════════════════════════════════════════════════════════════════════════╣
║ Result  (cost=0.00..0.01 rows=1 width=0) (actual time=0.004..0.005 rows=1 loops=1) ║
║ Planning time: 0.030 ms                                                            ║
║ Execution time: 0.036 ms                                                           ║
╚════════════════════════════════════════════════════════════════════════════════════╝

是功能还是记录功能(analyze = analyze)?

解决方法

如上所述,它只支持英国和美国英语.功能没有区别.甚至 source code也提到了英国拼写.

时间也没有区别.如果你运行那些一百万次,你将看不到任何合理的时间差异.运行它们可能会显示出一些差异,但其中一个实际上并不比另一个快.

您也可以查看parser source code.两者都被解析为完全相同:

analyze_keyword:
        ANALYZE                                 {}
        | ANALYSE /* British */                 {}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读