Re: regarding storage in postgres

Поиск
Список
Период
Сортировка
От Hans-Jürgen Schönig
Тема Re: regarding storage in postgres
Дата
Msg-id 429D733A.2040805@cybertec.at
обсуждение исходный текст
Ответ на regarding storage in postgres  (Nithin Sontineni <nithin_iiit@yahoo.com>)
Ответы Re: regarding storage in postgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Nithin Sontineni wrote:
> Hi,
>          i want to know how postgres will store a
> relation in pages and where can i see the code related
> to this in the source code.Plz help me .
> 
>  S.Nithin 
> 
> 
> 
>         
> __________________________________ 
> Discover Yahoo! 
> Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
> http://discover.yahoo.com/
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings


Nithin,

You can find the code in src/backend/storage.
There you will find a couple of directories containing code of various 
parts of the storage system.

I guess you will be most interested in page/bufpage.c. There you can see  how a page works. I highly suggest to read
thecorresponding header file
 

[hs@athlon storage]$ pwd
/usr/src/pg/postgresql-8.0.2/src/include/storage
[hs@athlon storage]$ ls -l bufpage.h
-rw-r--r--  1 hs hs 10255 Dec 31 23:03 bufpage.h

There you can find information about the layout of pages.
best regards,
    hans


-- 
Cybertec Geschwinde u Schoenig
Schoengrabern 134, A-2020 Hollabrunn, Austria
Tel: +43/664/393 39 74
www.cybertec.at, www.postgresql.at



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Physical Tlist optimization still possible?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: NOLOGGING option, or ?