pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Niels Kristian Schjødt <nielskristian@autouncle.com>
To: Devrim Gündüz <devrim@gunduz.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Bug in postgres 9.2 installation: pg_archivecleanup: command not found
Date: Mon, 12 Nov 2012 20:05:41 +0100
Message-ID: <0C710CC6-FAEE-4C93-B048-BB4AC7982048@autouncle.com> (raw)
In-Reply-To: <b1c60fec-8732-4398-92b6-04b357bf7f91@email.android.com>
References: <B6406BD4-59E6-4527-9CA6-A0912374472F@autouncle.com>
	<b1c60fec-8732-4398-92b6-04b357bf7f91@email.android.com>

I found this is the manual: 

http://www.postgresql.org/docs/9.1/static/pgarchivecleanup.html
F.25.4. Supported Server Versions

pg_archivecleanup is designed to work with PostgreSQL 8.0 and later when used as a standalone utility, or with PostgreSQL 9.0 and later when used as an archive cleanup command.

How does that match your answer? I would expect it to be part of the installation, when used in this:
> archive_cleanup_command "pg_archivecleanup /var/lib/postgresql/9.2/wals/ %r"
inside my recovery.conf file.

Den 12/11/2012 kl. 19.55 skrev Devrim Gündüz <devrim@gunduz.org>:

> Hi,
> 
> You probably need to install -contrib subpackage as well.
> 
> Regards,
> 
> "Niels Kristian Schjødt" <nielskristian@autouncle.com> wrote:
> I have installed postgres 9.2 on ubuntu 12.04 like this:
> 
> sudo add-apt-repository ppa:pitti/postgresql
> sudo apt-get update
> sudo apt-get install postgresql-9.2
> 
> However after this, i get the following error:
> 
> 2012-11-12 17:49:38 GMT WARNING:  archive_cleanup_command "pg_archivecleanup /var/lib/postgresql/9.2/wals/ %r": return code 32512
> sh: 1: pg_archivecleanup: not found
> 
> The same happens if I try directly as root:
> 
> root@slave-db ~ # pg_archivecleanup
> pg_archivecleanup: command not found
> 
> What can I do about it?
> 
> -- 
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.

view thread (3+ messages)

Message-ID: <0C710CC6-FAEE-4C93-B048-BB4AC7982048@autouncle.com>
Permalink:  ../0C710CC6-FAEE-4C93-B048-BB4AC7982048@autouncle.com/
Also on:    postgresql.org/message-id/0C710CC6-FAEE-4C93-B048-BB4AC7982048@autouncle.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: nielskristian@autouncle.com, devrim@gunduz.org
  Subject: Re: Bug in postgres 9.2 installation: pg_archivecleanup: command not found
  In-Reply-To: <0C710CC6-FAEE-4C93-B048-BB4AC7982048@autouncle.com>
  References: <B6406BD4-59E6-4527-9CA6-A0912374472F@autouncle.com> <b1c60fec-8732-4398-92b6-04b357bf7f91@email.android.com> <0C710CC6-FAEE-4C93-B048-BB4AC7982048@autouncle.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox