云数据库 GAUSSDB-数据库对象位置函数:pg_partition_filepath(partition_oid)

时间:2025-10-17 14:33:01

pg_partition_filepath(partition_oid)

描述:指定分区的文件路径名。只能用于非段页式关系。

返回值类型:text

备注:段页式关系建议使用段页式相关函数或视图,例如:

SELECT e.*, f.file_name
FROM gs_seg_extents e, gs_seg_datafiles f
WHERE e.tablespace_name = f.tablespace_name ADN e.bucketnode = f.bucketnode ADN e.file_id = f.file_id ADN e.forknum = f.forknum;
support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-2661.html