Обсуждение: WAL

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

WAL

От
Dextra - Gustavo Bartz Guedes
Дата:
Greetings,
Turning of fsync does not mean turn off WAL as well? So why does the
xlog files (pg_xlog) still being recycled?

I'm using postgresql 8.0.2.

Thanks.

Re: WAL

От
Bruce Momjian
Дата:
Dextra - Gustavo Bartz Guedes wrote:
> Greetings,
> Turning of fsync does not mean turn off WAL as well? So why does the
> xlog files (pg_xlog) still being recycled?

No, fsync only is used for server crashes.  WAL is still used to recover
from database crashes when the operating system keeps running.  We write
to WAL on commit but not to the file system on commit, and WAL cleans
that up.

--
  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