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;

  

相关文章:

  • 2022-01-02
  • 2021-12-28
  • 2022-03-08
  • 2022-02-20
  • 2022-01-27
  • 2021-06-01
  • 2021-10-17
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-07-26
  • 2021-08-29
  • 2021-07-30
  • 2021-12-18
相关资源
相似解决方案