在postgresql 9.1中找不到adminpack.sql

我试图在Ubuntu中安装并使用它.在 this页面之后安装附加的仪器包.
Install Server Instrumentation for Postgresql 8.4
To install Server Instrumentation for Postgresql 8.4 you may use the command line and type:
 sudo apt-get install postgresql-contrib

Run the adminpack.sql script,simply type:
 sudo -u postgres psql < /usr/share/postgresql/8.4/contrib/adminpack.sql

但是在9.1版本中找不到adminpack.sql.

尝试找到adminpack.但首先,运行updatedb以确保定位数据库是最新的.
sudo updatedb
locate adminpack

输出为:

/usr/lib/postgresql/9.1/lib/adminpack.so
/usr/share/postgresql/9.1/extension/adminpack--1.0.sql
/usr/share/postgresql/9.1/extension/adminpack.control

相关文章

项目需要,有个数据需要导入,拿到手一开始以为是mysql,结果...
本文小编为大家详细介绍“怎么查看PostgreSQL数据库中所有表...
错误现象问题原因这是在远程连接时pg_hba.conf文件没有配置正...
因本地资源有限,在公共测试环境搭建了PGsql环境,从数据库本...
wamp 环境 这个提示就是说你的版本低于10了。 先打印ph...
psycopg2.OperationalError: SSL SYSCALL error: EOF detect...