> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/15/appendixes/o.-obsolete-or-renamed-features/recovery-config.md).

# O.1. recovery.conf file merged into postgresql.conf

## O.1. recovery.conf 檔案併入 postgresql.conf

PostgreSQL 11 及更早版本使用名為 `recovery.conf` 的設定檔管理複本與備援伺服器。PostgreSQL 12 已移除對此檔案的支援。關於這項變更的詳細資訊，請參閱 [PostgreSQL 12 發布說明](https://docs.postgresql.tw/15/appendixes/release-notes/e.4.-prior-releases.md)。

在 PostgreSQL 12 及更新版本中，[封存復原、串流複寫及 PITR](https://docs.postgresql.tw/15/server-administration/backup-and-restore/continuous-archiving-and-point-in-time-recovery-pitr.md) 使用[一般伺服器設定參數](https://docs.postgresql.tw/15/server-administration/server-configuration/replication.md#RUNTIME-CONFIG-REPLICATION-STANDBY)設定。這些參數與其他參數相同，可在 `postgresql.conf` 中設定，或透過 [ALTER SYSTEM](https://docs.postgresql.tw/15/reference/sql-commands/alter-system.md) 設定。

若 `recovery.conf` 存在，伺服器將無法啟動。

`trigger_file`設定已更名為 [promote\_trigger\_file](https://docs.postgresql.tw/15/server-administration/server-configuration/replication.md#GUC-PROMOTE-TRIGGER-FILE)。

`standby_mode`設定已移除，改為在資料目錄中使用 `standby.signal` 檔案。詳細資訊請參閱[備援伺服器操作](https://docs.postgresql.tw/15/server-administration/high-availability-load-balancing-and-replication/log-shipping-standby-servers.md#STANDBY-SERVER-OPERATION)。

***

原文：[PostgreSQL 15.19 Documentation](https://www.postgresql.org/docs/15/recovery-config.html)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.postgresql.tw/15/appendixes/o.-obsolete-or-renamed-features/recovery-config.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
