From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim C. Nasby <jnasby@pervasive.com>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: Benjamin Arai <barai@cs.ucr.edu>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Running with fsync=off
Date: Tue, 27 Dec 2005 17:44:10 -0500
Message-ID: <4550.1135723450@sss.pgh.pa.us> (raw)
In-Reply-To: <20051227211238.GQ72143@pervasive.com>
References: <43AA5607.20000@cs.ucr.edu>
<20051222080759.GB21783@svana.org>
<23560.1135270033@sss.pgh.pa.us>
<20051227211238.GQ72143@pervasive.com>
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> How would sync<RETURN>sync<RETURN> differ from sync;sync? The second
> case will wait for the first command to return, or is there a race
> condition that's reduced by typing by hand?
The actual runtime of the "sync" program is epsilon, because it doesn't
wait for all the I/O to happen. The entire reason for the custom is
that the I/O is going on while you type the second "sync". And yes,
it's a race condition.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jnasby@pervasive.com, kleptog@svana.org, barai@cs.ucr.edu, pgsql-general@postgresql.org
Subject: Re: [GENERAL] Running with fsync=off
In-Reply-To: <4550.1135723450@sss.pgh.pa.us>
References: <43AA5607.20000@cs.ucr.edu> <20051222080759.GB21783@svana.org> <23560.1135270033@sss.pgh.pa.us> <20051227211238.GQ72143@pervasive.com> <4550.1135723450@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox