摘要:
top -c -b -n 1 -u postgres | grep -A 7 postgres | awk '{print $1,$9,$11}'| xargs -n 3 /root/test.sh #!/bin/bash RESULT=`psql -U postgres -c "SELECT CO 阅读全文
posted @ 2017-06-29 16:50
pg_libs
阅读(204)
评论(0)
推荐(0)
摘要:
1.安装时需要source /usr/local/pgsql/bin路径,依赖pg_config命令 阅读全文
posted @ 2017-06-29 11:03
pg_libs
阅读(328)
评论(0)
推荐(0)
摘要:
校准参数: random_page_cost(stap), cpu_index_cost(公式), cpu_operator_cost(公式) 步骤: 1.为了方便计算,其它参数常量设为1: set random_page_cost=1; set cpu_tuple_cost=1; set cpu_ 阅读全文
posted @ 2017-06-29 11:01
pg_libs
阅读(496)
评论(0)
推荐(0)

浙公网安备 33010602011771号