Re: Which files belong to which database? - Mailing list pgsql-novice

From Stephan Szabo
Subject Re: Which files belong to which database?
Date
Msg-id 20030910072538.F64012-100000@megazone.bigpanda.com
Whole thread Raw
In response to Which files belong to which database?  (Oliver Fromme <olli@lurza.secnetix.de>)
List pgsql-novice
On Wed, 10 Sep 2003, Oliver Fromme wrote:

> Is there a way to find out which files in $PGDATA belong
> to which database?  I need that information for accounting
> purposes (users are billed per Gbyte of data).  In mysql

I believe the structure in general is:
base/
base/<database oid>
base/<database oid>/<object relfilenoid>

In contrib there's a program, oid2name, which will show the name/number
mappings.


pgsql-novice by date:

Previous
From: Jason Hihn
Date:
Subject: Re: Lyris and Postgres
Next
From: Bryan Irvine
Date:
Subject: phone number list