Skip site navigation (1) Skip section navigation (2)

Re: initdb and fsync

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 (view raw or flat)
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: initdb-fsync-20120325.patch.gz
Description: application/x-gzip (4.3 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2012-03-26 06:50:24
Subject: Re: Reporting WAL file containing checkpoint's REDO record in pg_controldata's result
Previous:From: Joachim WielandDate: 2012-03-26 02:50:51
Subject: Re: patch for parallel pg_dump

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group