Re: Name -> number ...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Name -> number ...
Date: 2001-04-14 18:31:46
Message-ID: 200104141831.OAA23946@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> 77 databases in data/base directory ... all number'd ...
>
> select * from pg_database;
>
> doesn't give me the reference to which directory is which database ... so
> what table do we need to join on to get this information?
>
> thanks ...

Info is in pg_class.relfilenode. Now the big question is where do
database names go. My guess is pg_database.oid.

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Bowlby 2001-04-14 18:33:47 7.1 RPMS...
Previous Message Bruce Momjian 2001-04-14 18:29:49 Re: Re: 7.1 RPMs