\unrestrict
退出 “ 受限 ” 模式(即所有其他元命令都被阻止的模式),前提是指定的密钥与进入受限模式时传给 \restrict 的密钥匹配。
当前查看 PostgreSQL 18.6。
说明
退出 “ 受限 ” 模式(即所有其他元命令都被阻止的模式),前提是指定的密钥与进入受限模式时传给 \restrict 的密钥匹配。
- 客户端
- psql 18.6
- 区分大小写的写法
- \unrestrict
用法
\unrestrict restrict_key本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \unrestrict | 此语法签名未列出 |
手册定义
\unrestrictrestrict_key-
退出“受限”模式(即所有其他元命令都被阻止的模式),前提是指定的密钥与进入受限模式时传给
\restrict的密钥匹配。此命令主要用于 pg_dump、pg_dumpall 和 pg_restore 生成的纯文本转储,也可能适用于其他场景。
与大多数其他元命令不同,整个剩余行始终被视为
\unrestrict的参数,并且不会执行变量插值或反引号扩展。
相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 13 → 14: 属性变化。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 13
+++ PostgreSQL 14
@@ -1,5 +1,5 @@
{
- "definition": "Exit \"restricted\" mode (i.e., where all other meta-commands are blocked), provided the specified key matches the one given to \\restrict when restricted mode was entered. 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.",
+ "definition": "Exit \"restricted\" mode (i.e., where all other meta-commands are blocked), provided the specified key matches the one given to \\restrict when restricted mode was entered. 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. Unlike most other meta-commands, the entire remainder of the line is always taken to be the argument of \\unrestrict , and neither variable interpolation nor backquote expansion are performed.",
"modifiers": [],
"signature": "\\unrestrict restrict_key",
"spellings": [
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 13 至 20;最早采样版本不一定是实际引入版本。