如何在Ubuntu上为postgresql 9.3安装pg_archivecleanup

我试图在Ubuntu 13.04(Raring Ringtail)上使用 postgresql 9.3进行流复制.我通过执行以下操作在master和slave上安装了postgresql

apt-get install postgresql

我相信我有所有的位用于复制,除了,pg_archivecleanup不起作用.如果我试图运行它,我会得到它

The program ‘pg_archivecleanup’ is currently not installed. You can install it by typing: apt-get install postgres-xc-contrib

但是这个软件包安装了Postgres-XC并且炸毁了我不希望做的postgresql.

最好的我的谷歌搜索this thread,其中一个人与9.2有相同的问题,唯一的回答是“你可能还需要安装-contrib子包.”但做:

apt-get install postgresql-contrib

我明白了:

postgresql-contrib is already the newest version.

那么如何在Ubuntu 13.04(Raring Ringtail)上为Postgresql 9.3安装pg_archivecleanup?

谢谢!

布拉德

postgresql-contrib是一个元数据包,根据上下文导致postgresql-contrib-9.3的安装.后者包含感兴趣的文件.

通常如果你跑了:
dpkg -L postgresql-contrib-9.3您应该在文件中看到:

/usr/lib/postgresql/9.3/bin/pg_archivecleanup

它不在认路径中,但这是预期的.

反之,命令dpkg -S pg_archivecleanup应输出postgresql-contrib-9.3.

shell的命令未找到处理程序从postgres-xc获取它的建议在这种情况下没有帮助.据推测,它命中第一个包含命令名称的包.

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...