Find respective physical file of a table/index
-- For getting the physical location of a table:
postgresql configurationintermediate
by PostgreSQL
11 views
-- For getting the physical location of a table:
123456789101112
postgres=#
select pg_relation_filepath('test');
pg_relation_filepath
----------------------
base/13635/17395
(1 row)
postgres=#
select pg_relation_filepath('test_idx');
pg_relation_filepath
----------------------
base/13635/17638
(1 row)Please to add comments
No comments yet. Be the first to comment!