How does Postgres store a B-Tree on disk while using the OS file system?

Поиск
Список
Период
Сортировка
От Siddharth Jain
Тема How does Postgres store a B-Tree on disk while using the OS file system?
Дата
Msg-id CAPqV3pSQnzOVRkUujhGNjRZ=oN2HjkMydMH933hE1r=uxtbt9Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: How does Postgres store a B-Tree on disk while using the OS file system?  (Ron <ronljohnsonjr@gmail.com>)
Re: How does Postgres store a B-Tree on disk while using the OS file system?  (Christophe Pettus <xof@thebuild.com>)
Список pgsql-general
I am trying to sharpen my understanding of Postgres. As I understand, Postgres does not write directly to disk blocks. It uses the file system provided by the OS:
My question: How can it then store a B Tree on disk? I would think storing a B Tree requires storing disk offset addresses and so on (for a node to navigate to another etc.). For this, one would need to write directly to the disk using low-level disk access functions and not use file system API.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Idea: PostgreSQL equivalent to Oracle's KEEP clause
Следующее
От: Ron
Дата:
Сообщение: Re: How does Postgres store a B-Tree on disk while using the OS file system?