RefLib

Reference library for AI

Back

postgresql_16:9.7.1.1.1 Description

PostgreSQL 16 > Appendixes > Additional Supplied Programs > Client Applications > oid2name > Description

oid2name is a utility program that helps administrators to examine the file structure used by PostgreSQL. To make use of it, you need to be familiar with the database file structure, which is described in (see postgresql_16:8.22).

Note

The name “oid2name” is historical, and is actually rather misleading, since most of the time when you use it, you will really be concerned with tables' filenode numbers (which are the file names visible in the database directories). Be sure you understand the difference between table OIDs and table filenodes!

oid2name connects to a target database and extracts OID, filenode, and/or table name information. You can also have it show database OIDs or tablespace OIDs.

Back