> 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/19/reference/sql-commands/sql-reset.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# RESET

### RESET

RESET — 將某個執行期參數的值還原為預設值

### 語法

```

RESET configuration_parameter
RESET ALL
```

### 說明

`RESET` 會將執行期參數還原為其 預設值。`RESET` 是以下寫法的 另一種寫法：

```

SET configuration_parameter TO DEFAULT
```

詳情請參閱 [SET](https://docs.postgresql.tw/19/reference/sql-commands/sql-set.md)。

預設值的定義是：假如在目前工作階段中，從未對該參數執行過 `SET`，該參數原本應有的值。這個值的實際來源，可能是編譯內建的預設值、組態檔、命令列選項，或是各資料庫或各使用者的預設設定。這與定義為「工作階段開始時該參數的值」略有不同，因為如果該值來自組態檔，它會被還原為組態檔目前所指定的值。詳情請參閱 [第 19 章](https://docs.postgresql.tw/19/server-administration/runtime-config.md)。

`RESET` 的交易行為與 `SET` 相同：其效果會因交易回復而被撤銷。

### 參數

*`configuration_parameter`* : 可設定的執行期參數名稱。可用的參數記載於 [第 19 章](https://docs.postgresql.tw/19/server-administration/runtime-config.md) 以及 [SET](https://docs.postgresql.tw/19/reference/sql-commands/sql-set.md) 參考頁面。

`ALL` : 將所有可設定的執行期參數重設為預設值。

### 範例

將 `timezone` 組態變數設為其預設值：

```

RESET timezone;
```

### 相容性

`RESET` 是 PostgreSQL 的擴充功能。

### 另請參閱

[SET](https://docs.postgresql.tw/19/reference/sql-commands/sql-set.md), [SHOW](https://docs.postgresql.tw/19/reference/sql-commands/sql-show.md)

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/sql-reset.html)（原文版本：18.6；核對日期：2026-09-28）


---

# 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/19/reference/sql-commands/sql-reset.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.
