Обсуждение: ext3 with data=ordered

Поиск
Список
Период
Сортировка

ext3 with data=ordered

От
Jeff Frost
Дата:
Is it reasonable to mount the PGDATA filesystem with data=writeback on ext3 as
long as the PGXLOG filesystem is mounted data=ordered and fsync=on?  Or is
this only acceptable if you have battery backed controllers?

--
Jeff Frost, Owner     <jeff@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954

Re: ext3 with data=ordered

От
Bruce Momjian
Дата:
Jeff Frost wrote:
> Is it reasonable to mount the PGDATA filesystem with data=writeback on ext3 as
> long as the PGXLOG filesystem is mounted data=ordered and fsync=on?  Or is
> this only acceptable if you have battery backed controllers?

data=writeback is fine on all PostgreSQL file systems, including pg_xlog
because we fsync() it on commit.  In fact it is the recommended mount
option for ext3.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073