Re: data/base file structure

From: bpalmer <bpalmer(at)crimelabs(dot)net>
To: Oliver Vecernik <vecernik(at)aon(dot)at>
Cc: Chris Ruprecht <chrup999(at)yahoo(dot)com>, p-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: data/base file structure
Date: 2001-06-05 01:41:50
Message-ID: Pine.BSO.4.30.0106042140470.15577-100000@mizer.crimelabs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > can somebody explain to me, or point to an explanation of, the way,
> > PostGreSQL names databases?I have files like 18732 and 7503034 - and
> > they are big but I have no idea which data lives in what file:
> >
> > /home/pgsql/data/base/18720/
> > -rw------- 1 postgres postgres 70385664 May 24 13:55 7503034
> > -rw------- 1 postgres postgres 10788864 May 24 13:54 8748869
> > -rw------- 1 postgres postgres 458752 May 24 12:21 8939786
> > -rw------- 1 postgres postgres 158334976 May 24 13:51 8945104

Take a look at the oid2name tool (contrib/oid2name). It should be able to
decode the file numbers to point to table names for you.

- - Brandon

- ----------------------------------------------------------------------------
b. palmer, bpalmer(at)crimelabs(dot)net pgp:crimelabs.net/bpalmer.pgp5

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBOxw45/YgmKoG+YbuEQIvRgCg/bHVc/m16kRHcEvC0JKkmhP1Zr0An2QF
lHtY/lwlTpNNa4eF9NqJ0mDX
=9Y3u
-----END PGP SIGNATURE-----

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jie Liang 2001-06-05 01:58:24 Re: installation of 7.1.2 with tcl/tk
Previous Message Tom Lane 2001-06-05 01:23:16 Re: installation of 7.1.2 with tcl/tk