Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group