zoukankan      html  css  js  c++  java
  • PostgreSQL中的pg_relation_filepath()函数

    pg_relation_filepath()类似于pg_relation_filenode(),但它返回关系的整个文件路径名(相对于数据库集群的数据目录PGDATA)。

    postgres=# select pg_relation_filepath('t1');
     pg_relation_filepath 
    ----------------------
     base/13211/24654
    (1 row)
    
    postgres=# SELECT pg_relation_filepath(oid), relpages FROM pg_class WHERE relname = 't1';
     pg_relation_filepath | relpages 
    ----------------------+----------
     base/13211/24654     |        0
    (1 row)
    
    postgres=# 
    

      

  • 相关阅读:
    类和对象
    关联查询
    重点函数
    三大范式
    主外键
    软件开发的项目周期
    什么是事务
    索引
    视图
    数据库对象
  • 原文地址:https://www.cnblogs.com/abclife/p/11338164.html
Copyright © 2011-2022 走看看