mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Fix typo in comment.
Introduced in 4d330a61bb
.
Author: Masahiko Sawada
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/CAD21AoDg8rTWJkrNJg9UTP89vS8smfib2c55DVqKrCn8zR-GYA@mail.gmail.com
This commit is contained in:
@ -564,12 +564,12 @@ mdzeroextend(SMgrRelation reln, ForkNumber forknum,
|
|||||||
Assert(segstartblock + numblocks <= RELSEG_SIZE);
|
Assert(segstartblock + numblocks <= RELSEG_SIZE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If available and useful, use posix_fallocate() (via FileAllocate())
|
* If available and useful, use posix_fallocate() (via FileFallocate())
|
||||||
* to extend the relation. That's often more efficient than using
|
* to extend the relation. That's often more efficient than using
|
||||||
* write(), as it commonly won't cause the kernel to allocate page
|
* write(), as it commonly won't cause the kernel to allocate page
|
||||||
* cache space for the extended pages.
|
* cache space for the extended pages.
|
||||||
*
|
*
|
||||||
* However, we don't use FileAllocate() for small extensions, as it
|
* However, we don't use FileFallocate() for small extensions, as it
|
||||||
* defeats delayed allocation on some filesystems. Not clear where
|
* defeats delayed allocation on some filesystems. Not clear where
|
||||||
* that decision should be made though? For now just use a cutoff of
|
* that decision should be made though? For now just use a cutoff of
|
||||||
* 8, anything between 4 and 8 worked OK in some local testing.
|
* 8, anything between 4 and 8 worked OK in some local testing.
|
||||||
|
Reference in New Issue
Block a user