簡體   English   中英

無法識別Postgres archive_cleanup_command

[英]Postgres archive_cleanup_command is not recognized

我將其放在postgresql.conf中(第193行):

archive_cleanup_command = 'pg_archivecleanup C:\\pg\\archivedir %r'

現在,當我嘗試啟動服務器時,出現以下錯誤:

LOG:  unrecognized configuration parameter "archive_cleanup_command" in file "c:/pg/postgresql.conf" line 193
FATAL:  configuration file "c:/db_slave/postgresql.conf" contains errors

您知道為什么無法識別該命令/

C:\\ bin \\ pgsql在我的路徑中,可以通過cmd執行pg_archivecleanup

最后信息:

pg_ctl --version 

> pg_ctl (PostgreSQL) 9.2.3

提前致謝。

archive_cleanup_command是您放入備用服務器的recovery.conf文件中的命令。

它不適合postgresql.conf

請參閱文檔中的存檔恢復設置

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM