Re: Cannot start the postgres service - Mailing list pgsql-general

From Craig Ringer
Subject Re: Cannot start the postgres service
Date
Msg-id 4AD5608E.4070807@postnewspapers.com.au
Whole thread Raw
In response to Re: Cannot start the postgres service  (Mitesh51 <mit_bca1@yahoo.com>)
Responses Re: Cannot start the postgres service
Re: Cannot start the postgres service
List pgsql-general
On 13/10/2009 2:59 PM, Mitesh51 wrote:
>
> Yeah...
>
> My query is...Is it the reason y postgres stops working?? (Moving files from
> pg_xlog)

pg_xlog contains transaction logs. These aren't "log files" in the sense
of text logs designed for the administrator to use. They're part of the
critical function of the database and they're what permits Pg to support
transactional rollback, safe crash recovery, point-in-time recovery, and
lots more.

Deleting them or moving them is just as bad for your database as
deleting or moving the files that store tables. It's a really, really
bad idea.

A better question might by "why on earth are you messing about with the
data directory when you don't understand what it does and how it works?".

--
Craig Ringer

pgsql-general by date:

Previous
From: Tim Landscheidt
Date:
Subject: Re: Current state of XML capabilities in PostgreSQL?
Next
From: Gaini Rajeshwar
Date:
Subject: How to create tsvector_update_trigger on Non-character type data