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=# 

  

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2021-08-18
  • 2022-01-29
  • 2021-09-08
  • 2021-07-03
相关资源
相似解决方案