重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 415|回复: 0
打印 上一主题 下一主题

可见性映射VM的查看

[复制链接]
跳转到指定楼层
楼主
发表于 2024-1-1 18:00:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

默认是没有安装:
postgres@:5432/postgres-96307#=select pg_visibility_map('student');
ERROR:  function pg_visibility_map(unknown) does not exist
LINE 1: select pg_visibility_map('student');
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
postgres@:5432/postgres-96307#=\dx
                                            List of installed extensions
        Name        | Version |   Schema   |                              Description                              
--------------------+---------+------------+------------------------------------------------------------------------
pg_buffercache     | 1.4     | public     | examine the shared buffer cache
pg_stat_statements | 1.10    | public     | track planning and execution statistics of all SQL statements executed
plpgsql            | 1.0     | pg_catalog | PL/pgSQL procedural language
(3 rows)


--创建pg_visibility
postgres@:5432/postgres-96307#=create extension pg_visibility;
CREATE EXTENSION

postgres@:5432/postgres-96307#=\dx
                                            List of installed extensions
        Name        | Version |   Schema   |                              Description                              
--------------------+---------+------------+------------------------------------------------------------------------
pg_buffercache     | 1.4     | public     | examine the shared buffer cache
pg_stat_statements | 1.10    | public     | track planning and execution statistics of all SQL statements executed
pg_visibility      | 1.2     | public     | examine the visibility map (VM) and page-level visibility info
plpgsql            | 1.0     | pg_catalog | PL/pgSQL procedural language
(4 rows)

为给定关系的给定块返回其在可见性映射中的“全部可见”和“全部冻结”位。


postgres@:5432/postgres-96307#=select pg_visibility_map('student');
pg_visibility_map
-------------------
(0,t,t)
(1 row)


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-30 11:30 , Processed in 0.077083 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表