Re: How to determine which file contains which block

Поиск
Список
Период
Сортировка
От Frank Way
Тема Re: How to determine which file contains which block
Дата
Msg-id 20040129140934.37876.qmail@web11604.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: How to determine which file contains which block  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
--- 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/

В списке pgsql-admin по дате отправления:

Предыдущее
От: Jodi Kanter
Дата:
Сообщение: Re: [Fwd: binary tree query]
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Error seen when vacuuming pg_largeobject table