Each directory represents a database (created via create database
). The number is the oid of the database. To see the oid and its name, run the following statement:
select oid, datname
from pg_database;
Inside each directory each file corresponds to the an entry in pg_class
where the oid matches the number of the file in the directory:
You can see the oids and to which relation they relate by running the statement:
select cl.relfilenode, nsp.nspname as schema_name, cl.relname, cl.relkind
from pg_class cl
join pg_namespace nsp on cl.relnamespace = nsp.oid;
You might also want to check out the manual
Btw: if you are really still running 8.2 you should upgrade as soon as possible.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…