HGDB使用analyze搜集表的统计信息
2017-10-20 11:22
369 查看
highgo=# \d test;
数据表 "public.test"
栏位 | 类型 | 修饰词
------+---------+--------
id | integer |
索引:
"t1_idx" btree (id)
highgo=# select schemaname ,relname,last_analyze from pg_stat_all_tables where relname='test';
schemaname | relname | last_analyze
------------+---------+-------------------------------
public | test | 2017-10-05 11:15:35.877243+08
(1 行记录)
highgo=# \! time
当前时间: 11:21:33.07
输入新时间:
highgo=# analyze test;
ANALYZE
highgo=# select schemaname ,relname,last_analyze from pg_stat_all_tables where relname='test';
schemaname | relname | last_analyze
------------+---------+-------------------------------
public | test | 2017-10-05 11:21:42.321886+08
(1 行记录)
highgo=#
数据表 "public.test"
栏位 | 类型 | 修饰词
------+---------+--------
id | integer |
索引:
"t1_idx" btree (id)
highgo=# select schemaname ,relname,last_analyze from pg_stat_all_tables where relname='test';
schemaname | relname | last_analyze
------------+---------+-------------------------------
public | test | 2017-10-05 11:15:35.877243+08
(1 行记录)
highgo=# \! time
当前时间: 11:21:33.07
输入新时间:
highgo=# analyze test;
ANALYZE
highgo=# select schemaname ,relname,last_analyze from pg_stat_all_tables where relname='test';
schemaname | relname | last_analyze
------------+---------+-------------------------------
public | test | 2017-10-05 11:21:42.321886+08
(1 行记录)
highgo=#
相关文章推荐
- 分析表- 自动搜集统计信息-索引使用情况
- 使用待定的统计信息
- 如何使用dbms_stats分析统计信息
- 观察analyze table compute statistics 都对什么对象统计了信息
- 使用 atmadm 来显示 ATM 适配器上传入和传出呼叫的统计信息
- 【转】如何知道执行计划使用了那些统计信息
- 如何使用dbms_stats分析统计信息?
- 使用dbms_stats.export导出统计信息
- 通过使用第三方SDK来实现应用的分享,第三方登陆,数据信息统计等功能(ShareSDK)。
- 是什么引起执行计划变得极其糟糕? 应该使用更新统计信息来解决它吗?
- android 查看电量情况,手机信息,电池历史记录,使用情况统计 ,wifi 使用情况
- 使用 GDB 恢复堆栈信息
- 机器学习(七)使用pandas库进行数据分析_——统计信息和离散化
- SQL优化----如何使用工具快速诊断出统计信息有问题?
- 8.3.7 InnoDB and MyISAM Index Statistics Collection InnoDB 和MyISAM 索引统计信息搜集
- 为准确生成执行计划更新统计信息-analyze与dbms_stats
- 使用hadoop_restful_api实现对集群信息的一些统计
- Linux 如何使用gdb 查看core堆栈信息
- 使用v$sql_monitor视图查看当前正在运行的SQL语句的统计信息
- 【python日常一】使用python抓取拉勾网职位信息并做简单统计分析