postgreSQL中一般 一个表或索引会对应一个或多个数据文件,可以通过下面的方法获得表对应的数据文件位置:
postgres=# create table testtab (t1 int);
CREATE TABLE
postgres=#
postgres=# SELECT pg_relation_filepath('testtab');
pg_relation_filepath
----------------------
base/13055/16384
(1 row)