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

From Siddharth Jain
Subject How does Postgres store a B-Tree on disk while using the OS file system?
Date
Msg-id CAPqV3pSQnzOVRkUujhGNjRZ=oN2HjkMydMH933hE1r=uxtbt9Q@mail.gmail.com
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Idea: PostgreSQL equivalent to Oracle's KEEP clause
Next
From: Ron
Date:
Subject: Re: How does Postgres store a B-Tree on disk while using the OS file system?