Re: pgsql_data/base mapping

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Laurette Cisneros <laurette(at)nextbus(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgsql_data/base mapping
Date: 2002-06-03 17:25:01
Message-ID: 200206031725.g53HP1i14963@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Laurette Cisneros wrote:
>
> Are the numbers of the directories in the base diretory and the numbers of
> the directories under that, etc. traceable to a reference somewhere in the
> postgresql server using that data directory (such as the pg_database table
> or such)? If so, is there somewhere this is documented?

You can use /contrib/oid2name to get the database names and table names
from the oid file numbers.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-06-03 19:25:00 Re: code contribution
Previous Message Oleg Bartunov 2002-06-03 16:45:03 patch for contrib/intarray (7.2 and 7.3)