首页 > 系统服务 > 详细

postgres安装pg_buffercache扩展

时间:2019-05-28 16:17:32      阅读:239      评论:0      收藏:0      [点我收藏+]

1.查看是否安装了pg_buffercache

postgres=#  \dx
                      List of installed extensions
      Name      | Version |   Schema   |           Description           
----------------+---------+------------+---------------------------------
 plpgsql        | 1.0     | pg_catalog | PL/pgSQL procedural language
(1 rows)

2.查看当前服务器是否可以使用pg_buffercache扩展

postgres=# select * from pg_available_extensions where name=‘pg_buffercache‘;

3.安装pg_buffercache扩展

postgres-# create extension pg_buffercache;
postgres-# \dx
                      List of installed extensions
      Name      | Version |   Schema   |           Description           
----------------+---------+------------+---------------------------------
 pg_buffercache | 1.3     | public     | examine the shared buffer cache
 plpgsql        | 1.0     | pg_catalog | PL/pgSQL procedural language
(2 rows)

4.删除pg_buffercache

postgres-# drop extension pg_buffercache;

  

postgres安装pg_buffercache扩展

原文:https://www.cnblogs.com/abclife/p/10938005.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!