Where in the source code does postgres write to disk?

From: Mike Levine <mikenyy3(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Where in the source code does postgres write to disk?
Date: 2013-04-20 15:01:41
Message-ID: CANfBbud+oFgUerm=+cx_cKzhj5HKQU+SaEZgG5rAGctm0fD=Zg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Parkerson 2013-04-20 16:27:51 UPDATE with subquery; possible bug in query parser?
Previous Message wk 2013-04-20 14:39:53 回复: [GENERAL] configure --enable -dtrace (systemtap) on centos6.4 x86_3277yML3Vzci9iaW4vc3RhcDo invalid option -- 'C'