Re: Please humor me ... - Mailing list pgsql-performance

From Jeff Davis
Subject Re: Please humor me ...
Date
Msg-id 1176152744.4152.75.camel@dogma.v10.wvs
Whole thread Raw
In response to Please humor me ...  (Carlos Moreno <moreno_pg@mochima.com>)
List pgsql-performance
On Mon, 2007-04-09 at 16:05 -0400, Carlos Moreno wrote:
> And by the subject, I mean:  please provide a "factual" answer, as opposed
> to the more or less obvious answer which would be "no one in their sane
> mind would even consider doing such thing"  :-)
>
> 1) Would it be possible to entirely disable WAL?  (something like setting a
> symlink so that pg_xlog points to /dev/null, perhaps?)

You can't disable WAL, but you can disable fsync.

> 2) What would be the real implications of doing that?
>

A good chance that you lose your entire database cluster if the power
fails.

It's not just your tables that require WAL, it's also the system
catalogs. If you were to disable it, and a system catalog became
corrupt, the database would not know what to do.

There's always a chance you could recover some of that data by a manual
process (i.e. open up the database files in a hex editor and look for
your data), but there would be no guarantee.

Regards,
    Jeff Davis


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: DELETE with filter on ctid
Next
From: Tom Lane
Date:
Subject: Re: join to view over custom aggregate seems like it should be faster