after Simon pointed me in the direction of the logs I found out out that I had made an error in my archive_command in postgres.conf - it was trying to write to a directory that doesn't exist.
2 further questions:
1. Is there a naming convention for the directory that holds archived WAL logs?
2. Again by convention Should the directory that holds archived WAL logs be below or above the postgres PGDATA directoy such as
Or is this a matter of preference? If they are to be above I presume that archive WAL logs need to be backuped seperately to the database backup so that they could be used in a PITR after a total system loss?
I'm on 8.4.5
Austen Birchall Senior Database Administrator
Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
Tel: +44 (0)1392 884481 Fax: +44 (0)1392 885681
E-mail: austen(dot)birchall(at)metoffice(dot)gov(dot)uk Website: http://www.metoffice.gov.uk
From: Simon Riggs [mailto:simon(at)2ndQuadrant(dot)com]
Sent: 23 May 2011 12:56
To: Birchall, Austen
Subject: Re: [NOVICE] pg_stop_backup fails to complete
On Mon, May 23, 2011 at 11:56 AM, Birchall, Austen <austen(dot)birchall(at)metoffice(dot)gov(dot)uk> wrote:
> I trying to do a backup on my test database however I get
> testrec=# select pg_stop_backup();
> WARNING: pg_stop_backup still waiting for archive to complete (60
> WARNING: pg_stop_backup still waiting for archive to complete (120
This means your archive_command has not successfully executed.
Read the server log and find out why, then fix.
Please include the version in use when reporting possible problems. Thanks.
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
In response to
pgsql-novice by date
|Next:||From: Steve Murphy||Date: 2011-05-24 13:09:07|
|Subject: Assign the system timezone to a variable in a function?|
|Previous:||From: Frank Bax||Date: 2011-05-23 14:09:29|
|Subject: Re: how to select rows for a sum function|