pgextras的命令行

pgextrascli的Python项目详细描述


https://badge.fury.io/py/pgextrascli.pnghttps://travis-ci.org/onjin/pgextrascli.png?branch=masterhttps://pypip.in/d/pgextrascli/badge.png

https://github.com/scottwoodall/python-pgextras的简单命令行包装器

  • 免费软件:BSD许可证

用法

用法:pgextrasci[options]cmd

选项:

$ pgextrascli --help

-l, --list-commands  shows available commands
--host=HOST          database host, default: localhost
--port=PORT          database port, default: 5432
--dbname=DBNAME      database name, default: template1
--user=USER          database user, default: postgres
--password=PASSWORD  database password, default: empty
--help               Show this message and exit.

可用命令:

$ pgextrascli -l

bloat                          Table and index bloat in your database ordered by most wasteful.
blocking                       Queries holding locks other queryes are qaiting to be releases
cache_hit                      Calculates your cache hit rate (effective databases are at 99% and up).
calls                          Show 10 most frequently called queries. Requires the pg_stat_statements.
index_usage                    Calculates your index hit rate (effective databases are at 99% and up).
locks                          Display queries with active locks.
long_running_queries           Show all queries longer than five minutes by descending duration.
outliers                       Show 10 queries that have longest execution time in aggregate. Requires the pg_stat_statments.
ps                             View active queries with execution time.
seq_scans                      Show the count of sequential scans by table descending by order.
total_table_size               Show the size of the tables (including indexes), descending by size.
unused_indexes                 Show unused and almost unused indexes, ordered by their size relative to the number of index scans.
vacuum_stats                   Show dead rows and whether an automatic vacuum is expected to be triggered.
version                        Get the Postgres server version.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
添加组件后,java JTable为空   java将json发送到php并插入mysql,但返回null   java Spring引导JNDI CommonJ资源   从不同PC创建和合并后的Java servlet问题   java如何在使用findelements时从xpath获取文本   java使用spring boot使用gmail smtp发送电子邮件   java在不使用pojo、bean或getter和setter的情况下获取Json标题的Json数组   Java中的OpenFile对话框将null作为响应   JavaBuilder模式。扩展接口   java中无需替换的数据结构选取   java如何评价Encog中的预测神经网络   java如何在安卓中使用实际的HttpURLConnection进行单元测试?   java使用XML配置禁用WebSocket中的CSRF保护   java如何通过hibernate从多表查询中获取数据?   mysql如何在java中获取更新的行Id   java AEM/CQ组件单一组件/有限组件   java FFmpeg Javacv延迟问题   显示整数数组的java不起作用