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

initdb and fsync

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: initdb and fsync
Date: 2012-01-28 00:19:41
Message-ID: 1327709981.9123.11.camel@sussancws0025 (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
It looks like initdb doesn't fsync all the files it creates, e.g. the

While it's unlikely that it would cause any real data loss, it can be
inconvenient in some testing scenarios involving VMs.

Thoughts? Would a patch to add a few fsync calls to initdb be accepted?
Is a platform-independent fsync be available at initdb time?

    Jeff Davis


pgsql-hackers by date

Next:From: Tom LaneDate: 2012-01-28 01:03:06
Subject: Re: pg_dump -s dumps data?!
Previous:From: Alvaro HerreraDate: 2012-01-27 23:47:27
Subject: Re: foreign key locks, 2nd attempt

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