\restrict
使用给定的密钥进入 “ 受限 ” 模式。在该模式下,唯一允许的元命令是用于退出受限模式的 \unrestrict 。密钥只能包含字母数字字符。
当前查看 PostgreSQL 18.6。
说明
使用给定的密钥进入 “ 受限 ” 模式。在该模式下,唯一允许的元命令是用于退出受限模式的 \unrestrict 。密钥只能包含字母数字字符。
- 客户端
- psql 18.6
- 区分大小写的写法
- \restrict
用法
\restrict restrict_key本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \restrict | 此语法签名未列出 |
手册定义
\restrictrestrict_key-
使用给定的密钥进入“受限”模式。在该模式下,唯一允许的元命令是用于退出受限模式的
\unrestrict。密钥只能包含字母数字字符。此命令主要用于 pg_dump、pg_dumpall 和 pg_restore 生成的纯文本转储,也可能适用于其他场景。
相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 12 → 13: 新增收录。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 12
+++ PostgreSQL 13
@@ -1 +1,8 @@
-该版未收录
+{
+ "definition": "Enter \"restricted\" mode with the provided key. In this mode, the only allowed meta-command is \\unrestrict , to exit restricted mode. The key may contain only alphanumeric characters. This command is primarily intended for use in plain-text dumps generated by pg_dump , pg_dumpall , and pg_restore , but it may be useful elsewhere.",
+ "modifiers": [],
+ "signature": "\\restrict restrict_key",
+ "spellings": [
+ "\\restrict"
+ ]
+}
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 13 至 20;最早采样版本不一定是实际引入版本。