Updated on 2025-10-10 GMT+08:00

GET_TABLESPACE_OBS_FILE

The GET_TABLESPACE_OBS_FILE view is used to obtain all files of the PG_DB_FILE system catalog in the previous tablespace of the current node. This view is supported only by clusters of version 9.1.1.100 or later.

Table 1 GET_TABLESPACE_OBS_FILE columns

Column

Type

Description

db_oid

oid

Database OID

table_space_oid

oid

Tablespace OID

relfilenode

oid

Physical directory ID of the table

file_id

bigint

File ID

file_type

text

File type

file_size

bigint

File size in bytes

file_path

text

Absolute path of the file