pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
data/base file structure
3+ messages / 3 participants
[nested] [flat]

* data/base file structure
@ 2001-06-04 18:22 Chris Ruprecht <chrup999@yahoo.com>
  2001-06-04 18:50 ` Re: data/base file structure Oliver Vecernik <vecernik@aon.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Chris Ruprecht @ 2001-06-04 18:22 UTC (permalink / raw)
  To: pgsql-admin

Hi all,

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


Best regards,
Chris

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: data/base file structure
  2001-06-04 18:22 data/base file structure Chris Ruprecht <chrup999@yahoo.com>
@ 2001-06-04 18:50 ` Oliver Vecernik <vecernik@aon.at>
  2001-06-05 01:41   ` Re: data/base file structure bpalmer <bpalmer@crimelabs.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Oliver Vecernik @ 2001-06-04 18:50 UTC (permalink / raw)
  To: Chris Ruprecht <chrup999@yahoo.com>; +Cc: pgsql-admin

> Chris Ruprecht wrote:
> 
> Hi all,
> 
> 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
> 

In 7.1 and later, there is one database per directory and the
directories
are named $PGDATA/base/<oid>, where <oid> is the oid of the pg_database
entry.

Regards,
Oliver



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: data/base file structure
  2001-06-04 18:22 data/base file structure Chris Ruprecht <chrup999@yahoo.com>
  2001-06-04 18:50 ` Re: data/base file structure Oliver Vecernik <vecernik@aon.at>
@ 2001-06-05 01:41   ` bpalmer <bpalmer@crimelabs.net>
  0 siblings, 0 replies; 3+ messages in thread

From: bpalmer @ 2001-06-05 01:41 UTC (permalink / raw)
  To: Oliver Vecernik <vecernik@aon.at>; +Cc: Chris Ruprecht <chrup999@yahoo.com>; 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@crimelabs.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-----





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-06-05 01:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-04 18:22 data/base file structure Chris Ruprecht <chrup999@yahoo.com>
2001-06-04 18:50 ` Oliver Vecernik <vecernik@aon.at>
2001-06-05 01:41   ` bpalmer <bpalmer@crimelabs.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox