Home > Database > Mysql Tutorial > postgresql安装pg_stat_statements

postgresql安装pg_stat_statements

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:21:06
Original
1808 people have browsed it

pg_stat_statements 是postgresql一个扩展模块,主要记录SQL的运行信息 使用此模块必须增加此参数shared_preload_libraries到postgresql.conf,并且需要重启数据库 1.安装模块 下载源码,解压 我的目录在/home/postgres/postgresql-9.3.2/contrib/pg_stat_sta

   pg_stat_statements 是postgresql一个扩展模块,主要记录SQL的运行信息 使用此模块必须增加此参数shared_preload_libraries到postgresql.conf,并且需要重启数据库 1.安装模块 下载源码,解压 我的目录在/home/postgres/postgresql-9.3.2/contrib/pg_stat_statements make && make install 在安装的数据库目录/opt/pgsql9.3.2/share/extension有pg_stat_statements--1.1.sql说明安装成功 进入数据库执行create extension pg_stat_statements;即可 2.配置文件增加相关参数 # postgresql.conf shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.max = 10000 pg_stat_statements.track = all 3.启动数据库即可。注意9.3版本不需要再加custom_variable_classes = 'pg_stat_statements'参数 pg_stat_statementsColumns

postgresql安装pg_stat_statements   三联

pg_stat_statements (9.3) 

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template