Re: Cannot start the postgres service

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mitesh51 <mit_bca1(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot start the postgres service
Date: 2009-10-14 16:56:03
Message-ID: 20091014165603.GC4902@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mitesh51 wrote:

> I had 2 approach in my mind...to sync up transaction log files with specific
> full backup
>
> 1) to keep only time relavent files in pg_xlog dir and move other files to
> archive dir with code which is not a good idea as u suggest

Postgres is prepared to (and assumes it can) reuse and delete files in
pg_xlog. If you need a copy you can use for your own purposes, you MUST
get it through an archive_command. You MUST NOT fiddle with the files
in pg_xlog directly.

Also note that your archive_command needs to create a separate copy of
the file. Hardlinks are not allowed, because the file might get
rewritten by Postgres later. Moving (mv) the original files is not
allowed either for the same reason. Postgres will leave the file alone
until it has been archived, and assumes it can do whatever it pleases
with it as soon as the archiver has returned success (exit code 0).

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Hunsberger 2009-10-14 16:56:06 Re: Query to find contiguous ranges on a column
Previous Message Terry Lee Tucker 2009-10-14 15:45:42 Re: What does "INSERT 0 1" mean?