> 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/server-administration/runtime-config.md).

# Chapter 19. Server Configuration

**Table of Contents**

[19.1. Setting Parameters](/server-administration/runtime-config/config-setting.md) : [19.1.1. Parameter Names and Values](/server-administration/runtime-config/config-setting.md#CONFIG-SETTING-NAMES-VALUES)

```
[19.1.2. Parameter Interaction via the Configuration File](config-setting.md#CONFIG-SETTING-CONFIGURATION-FILE)

[19.1.3. Parameter Interaction via SQL](config-setting.md#CONFIG-SETTING-SQL)

[19.1.4. Parameter Interaction via the Shell](config-setting.md#CONFIG-SETTING-SHELL)

[19.1.5. Managing Configuration File Contents](config-setting.md#CONFIG-INCLUDES)
```

[19.2. File Locations](/server-administration/runtime-config/runtime-config-file-locations.md)

[19.3. Connections and Authentication](/server-administration/runtime-config/runtime-config-connection.md) : [19.3.1. Connection Settings](/server-administration/runtime-config/runtime-config-connection.md#RUNTIME-CONFIG-CONNECTION-SETTINGS)

```
[19.3.2. TCP Settings](runtime-config-connection.md#RUNTIME-CONFIG-TCP-SETTINGS)

[19.3.3. Authentication](runtime-config-connection.md#RUNTIME-CONFIG-CONNECTION-AUTHENTICATION)

[19.3.4. SSL](runtime-config-connection.md#RUNTIME-CONFIG-CONNECTION-SSL)
```

[19.4. Resource Consumption](/server-administration/runtime-config/runtime-config-resource.md) : [19.4.1. Memory](/server-administration/runtime-config/runtime-config-resource.md#RUNTIME-CONFIG-RESOURCE-MEMORY)

```
[19.4.2. Disk](runtime-config-resource.md#RUNTIME-CONFIG-RESOURCE-DISK)

[19.4.3. Kernel Resource Usage](runtime-config-resource.md#RUNTIME-CONFIG-RESOURCE-KERNEL)

[19.4.4. Background Writer](runtime-config-resource.md#RUNTIME-CONFIG-RESOURCE-BACKGROUND-WRITER)

[19.4.5. I/O](runtime-config-resource.md#RUNTIME-CONFIG-RESOURCE-IO)

[19.4.6. Worker Processes](runtime-config-resource.md#RUNTIME-CONFIG-RESOURCE-WORKER-PROCESSES)
```

[19.5. Write Ahead Log](/server-administration/runtime-config/runtime-config-wal.md) : [19.5.1. Settings](/server-administration/runtime-config/runtime-config-wal.md#RUNTIME-CONFIG-WAL-SETTINGS)

```
[19.5.2. Checkpoints](runtime-config-wal.md#RUNTIME-CONFIG-WAL-CHECKPOINTS)

[19.5.3. Archiving](runtime-config-wal.md#RUNTIME-CONFIG-WAL-ARCHIVING)

[19.5.4. Recovery](runtime-config-wal.md#RUNTIME-CONFIG-WAL-RECOVERY)

[19.5.5. Archive Recovery](runtime-config-wal.md#RUNTIME-CONFIG-WAL-ARCHIVE-RECOVERY)

[19.5.6. Recovery Target](runtime-config-wal.md#RUNTIME-CONFIG-WAL-RECOVERY-TARGET)

[19.5.7. WAL Summarization](runtime-config-wal.md#RUNTIME-CONFIG-WAL-SUMMARIZATION)
```

[19.6. Replication](/server-administration/runtime-config/runtime-config-replication.md) : [19.6.1. Sending Servers](/server-administration/runtime-config/runtime-config-replication.md#RUNTIME-CONFIG-REPLICATION-SENDER)

```
[19.6.2. Primary Server](runtime-config-replication.md#RUNTIME-CONFIG-REPLICATION-PRIMARY)

[19.6.3. Standby Servers](runtime-config-replication.md#RUNTIME-CONFIG-REPLICATION-STANDBY)

[19.6.4. Subscribers](runtime-config-replication.md#RUNTIME-CONFIG-REPLICATION-SUBSCRIBER)
```

[19.7. Query Planning](/server-administration/runtime-config/runtime-config-query.md) : [19.7.1. Planner Method Configuration](/server-administration/runtime-config/runtime-config-query.md#RUNTIME-CONFIG-QUERY-ENABLE)

```
[19.7.2. Planner Cost Constants](runtime-config-query.md#RUNTIME-CONFIG-QUERY-CONSTANTS)

[19.7.3. Genetic Query Optimizer](runtime-config-query.md#RUNTIME-CONFIG-QUERY-GEQO)

[19.7.4. Other Planner Options](runtime-config-query.md#RUNTIME-CONFIG-QUERY-OTHER)
```

[19.8. Error Reporting and Logging](/server-administration/runtime-config/runtime-config-logging.md) : [19.8.1. Where to Log](/server-administration/runtime-config/runtime-config-logging.md#RUNTIME-CONFIG-LOGGING-WHERE)

```
[19.8.2. When to Log](runtime-config-logging.md#RUNTIME-CONFIG-LOGGING-WHEN)

[19.8.3. What to Log](runtime-config-logging.md#RUNTIME-CONFIG-LOGGING-WHAT)

[19.8.4. Using CSV-Format Log Output](runtime-config-logging.md#RUNTIME-CONFIG-LOGGING-CSVLOG)

[19.8.5. Using JSON-Format Log Output](runtime-config-logging.md#RUNTIME-CONFIG-LOGGING-JSONLOG)

[19.8.6. Process Title](runtime-config-logging.md#RUNTIME-CONFIG-LOGGING-PROC-TITLE)
```

[19.9. Run-time Statistics](/server-administration/runtime-config/runtime-config-statistics.md) : [19.9.1. Cumulative Query and Index Statistics](/server-administration/runtime-config/runtime-config-statistics.md#RUNTIME-CONFIG-CUMULATIVE-STATISTICS)

```
[19.9.2. Statistics Monitoring](runtime-config-statistics.md#RUNTIME-CONFIG-STATISTICS-MONITOR)
```

[19.10. Vacuuming](/server-administration/runtime-config/runtime-config-vacuum.md) : [19.10.1. Automatic Vacuuming](/server-administration/runtime-config/runtime-config-vacuum.md#RUNTIME-CONFIG-AUTOVACUUM)

```
[19.10.2. Cost-based Vacuum Delay](runtime-config-vacuum.md#RUNTIME-CONFIG-RESOURCE-VACUUM-COST)

[19.10.3. Default Behavior](runtime-config-vacuum.md#RUNTIME-CONFIG-VACUUM-DEFAULT)

[19.10.4. Freezing](runtime-config-vacuum.md#RUNTIME-CONFIG-VACUUM-FREEZING)
```

[19.11. Client Connection Defaults](/server-administration/runtime-config/runtime-config-client.md) : [19.11.1. Statement Behavior](/server-administration/runtime-config/runtime-config-client.md#RUNTIME-CONFIG-CLIENT-STATEMENT)

```
[19.11.2. Locale and Formatting](runtime-config-client.md#RUNTIME-CONFIG-CLIENT-FORMAT)

[19.11.3. Shared Library Preloading](runtime-config-client.md#RUNTIME-CONFIG-CLIENT-PRELOAD)

[19.11.4. Other Defaults](runtime-config-client.md#RUNTIME-CONFIG-CLIENT-OTHER)
```

[19.12. Lock Management](/server-administration/runtime-config/runtime-config-locks.md)

[19.13. Version and Platform Compatibility](/server-administration/runtime-config/runtime-config-compatible.md) : [19.13.1. Previous PostgreSQL Versions](/server-administration/runtime-config/runtime-config-compatible.md#RUNTIME-CONFIG-COMPATIBLE-VERSION)

```
[19.13.2. Platform and Client Compatibility](runtime-config-compatible.md#RUNTIME-CONFIG-COMPATIBLE-CLIENTS)
```

[19.14. Error Handling](/server-administration/runtime-config/runtime-config-error-handling.md)

[19.15. Preset Options](/server-administration/runtime-config/runtime-config-preset.md)

[19.16. Customized Options](/server-administration/runtime-config/runtime-config-custom.md)

[19.17. Developer Options](/server-administration/runtime-config/runtime-config-developer.md)

[19.18. Short Options](/server-administration/runtime-config/runtime-config-short.md)

There are many configuration parameters that affect the behavior of the database system. In the first section of this chapter we describe how to interact with configuration parameters. The subsequent sections discuss each parameter in detail.

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/runtime-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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.postgresql.tw/server-administration/runtime-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
