From: | Doug McNaught <doug(at)wireboard(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Greg Copeland <greg(at)copelandconsulting(dot)net>, shridhar_daithankar(at)persistent(dot)co(dot)in, PostgresSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>, PostgresSQL General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Performance while loading data and indexing |
Date: | 2002-09-26 21:31:55 |
Message-ID: | m3znu4igj8.fsf@varsoon.wireboard.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-performance |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Can anyone clarify if "data=writeback" is safe for PostgreSQL.
> Specifically, are the data files recovered properly or is this option
> only for a filesystem containing WAL?
"data=writeback" means that no data is journaled, just metadata (which
is like XFS or Reiser). An fsync() call should still do what it
normally does, commit the writes to disk before returning.
"data=journal" journals all data and is the slowest and safest.
"data=ordered" writes out data blocks before committing a journal
transaction, which is faster than full data journaling (since data
doesn't get written twice) and almost as safe. "data=writeback" is
noted to keep obsolete data in the case of some crashes (since the
data may not have been written yet) but a completed fsync() should
ensure that the data is valid.
So I guess I'd probably use data=ordered for an all-on-one-fs
installation, and data=writeback for a WAL-only drive.
Hope this helps...
-Doug
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-09-26 21:32:01 | Re: [HACKERS] Performance while loading data and indexing |
Previous Message | Neil Conway | 2002-09-26 21:17:30 | Re: [HACKERS] Performance while loading data and indexing |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-09-26 21:32:01 | Re: [HACKERS] Performance while loading data and indexing |
Previous Message | Tom Lane | 2002-09-26 21:22:01 | Re: Reconstructing FKs in pg_dump |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-09-26 21:32:01 | Re: [HACKERS] Performance while loading data and indexing |
Previous Message | Neil Conway | 2002-09-26 21:17:30 | Re: [HACKERS] Performance while loading data and indexing |