Re: How to find data directory

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Chris Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to find data directory
Date: 2005-12-19 05:43:22
Message-ID: 20051219054322.GA90346@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, Dec 18, 2005 at 09:56:39PM -0500, Chris Browne wrote:
> The filenames are the OID numbers associated with either databases
> (see pg_catalog.pg_database) or tables (see pg_catalog.pg_class).

For tables, indexes, etc., the filename isn't necessarily the same
as the object's oid; it starts out that way but it can change after
commands like TRUNCATE and CLUSTER. pg_class.relfilenode contains
the name of a relation's on-disk file.

--
Michael Fuhr

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Hannes Dorbath 2005-12-19 08:20:55 Re: upgrading a three year old server
Previous Message Chris Browne 2005-12-19 02:56:39 Re: How to find data directory