From: Frank Way <fgw_three@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to determine which file contains which block
Date: Thu, 29 Jan 2004 06:09:34 -0800 (PST)
Message-ID: <20040129140934.37876.qmail@web11604.mail.yahoo.com> (raw)
In-Reply-To: <7274.1075329916@sss.pgh.pa.us>
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Frank Way <fgw_three@yahoo.com> writes:
> > After finding the ctid in (block,tuple) format, how do you know
> which
> > file in all the subdirectories under /usr/local/pgsql/data/base
> > contains that block?
>
> The subdirectories are named after the OIDs of their databases
> (pg_database.oid column). Individual files are named after the
> relfilenodes of their tables/indexes (pg_class.relfilenode).
> Note also that tables exceeding 1GB will be broken into gigabyte-size
> segments named nnn, nnn.1, nnn.2, etc; if you are dealing with one
> of these then you need to determine which segment to use from the
> block number.
>
> regards, tom lane
>
Thanks Tom, your answer is MUCH appreciated.....
frank
=====
Frank Way
E-Mail: fgw_three@yahoo.com
"Place guards on all the roads and keep the troops
from running to the rear..." MG John Buford, 1863
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: fgw_three@yahoo.com, tgl@sss.pgh.pa.us
Subject: Re: How to determine which file contains which block
In-Reply-To: <20040129140934.37876.qmail@web11604.mail.yahoo.com>
References: <7274.1075329916@sss.pgh.pa.us> <20040129140934.37876.qmail@web11604.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox