Where in the source code does postgres write to disk? - Mailing list pgsql-general

From Mike Levine
Subject Where in the source code does postgres write to disk?
Date
Msg-id CANfBbud+oFgUerm=+cx_cKzhj5HKQU+SaEZgG5rAGctm0fD=Zg@mail.gmail.com
Whole thread Raw
Responses Re: Where in the source code does postgres write to disk?
List pgsql-general
According to http://www.postgresql.org/docs/9.2/static/storage-file-layout.html

"When a table or index exceeds 1 GB, it is divided into gigabyte-sized segments. The first segment's file name is the same as the filenode; subsequent segments are named filenode.1, filenode.2, etc."

I was wondering where in the source code this is dealt with. I have been searching for the last few hours but have had no luck


Any help guiding me to the location in the source code where postgres writes the buffer to disk would be greatly appreciated.


Thanks

pgsql-general by date:

Previous
From: "wk"
Date:
Subject: =?gb18030?B?u9i4tKO6IFtHRU5FUkFMXSBjb25maWd1cmUgIC0t?= =?gb18030?B?ZW5hYmxlIC1kdHJhY2Ugo6hzeXN0ZW10YXCjqSBv?= =?gb18030?B?biBjZW50b3M2LjQgeDg2XzMyNzd5TUwzVnpjaTlp?= =?gb18030?B?YVc0dmMzUmhjRG8gaW52YWxpZCBvcHRpb24gLS0g?= =?gb18030?B?J0Mn?=
Next
From: Scott Parkerson
Date:
Subject: UPDATE with subquery; possible bug in query parser?