Re: Please humor me ...

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Carlos Moreno <moreno_pg(at)mochima(dot)com>
Cc: PostgreSQL Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Please humor me ...
Date: 2007-04-09 21:05:44
Message-ID: 1176152744.4152.75.camel@dogma.v10.wvs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2007-04-09 21:07:46 Re: join to view over custom aggregate seems like it should be faster
Previous Message Tom Lane 2007-04-09 20:55:27 Re: DELETE with filter on ctid