| From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
|---|---|
| To: | cedric(at)2ndquadrant(dot)com |
| Cc: | pgsql-hackers(at)postgresql(dot)org, Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, Noah Misch <noah(at)leadboat(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net> |
| Subject: | Re: initdb and fsync |
| Date: | 2012-03-26 02:59:36 |
| Message-ID: | 1332730776.8251.93.camel@jdavis |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sat, 2012-03-17 at 17:48 +0100, Cédric Villemain wrote:
> I agree with Andres.
>
>
> I believe we should use sync_file_range (_before?) with linux.
>
> And we can use posix_fadvise_dontneed on other kernels.
>
OK, updated patch attached. sync_file_range() is preferred,
posix_fadvise() is a fallback.
Regards,
Jeff Davis
| Attachment | Content-Type | Size |
|---|---|---|
| initdb-fsync-20120325.patch.gz | application/x-gzip | 4.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2012-03-26 06:50:24 | Re: Reporting WAL file containing checkpoint's REDO record in pg_controldata's result |
| Previous Message | Joachim Wieland | 2012-03-26 02:50:51 | Re: patch for parallel pg_dump |