↑↓ 选择 ↵ 打开 ⌫ 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

百科 / psql 命令 / 脚本与帮助

\unrestrict

退出 “ 受限 ” 模式(即所有其他元命令都被阻止的模式),前提是指定的密钥与进入受限模式时传给 \restrict 的密钥匹配。

当前查看 PostgreSQL 18。

中文定义与说明

退出“受限”模式(即所有其他元命令都被阻止的模式),前提是指定的密钥与进入受限模式时传给\restrict 的密钥匹配。

此命令主要用于 pg_dump、pg_dumpall 和 pg_restore 生成的纯文本转储文件中,但在其他场景下也可能有用。

与大多数其他元命令不同,整个剩余行始终被视为\unrestrict 的参数,并且不会执行变量插值或反引号扩展。

说明

退出 “ 受限 ” 模式(即所有其他元命令都被阻止的模式),前提是指定的密钥与进入受限模式时传给 \restrict 的密钥匹配。

客户端
psql 18.7
区分大小写的写法
\unrestrict

用法

\unrestrict restrict_key

本版手册中的写法

命令手册中的后缀修饰符
\unrestrict此语法签名未列出

手册定义

退出“受限”模式(即所有其他元命令都被阻止的模式),前提是指定的密钥与进入受限模式时传给\restrict 的密钥匹配。

此命令主要用于 pg_dump、pg_dumpall 和 pg_restore 生成的纯文本转储文件中,但在其他场景下也可能有用。

与大多数其他元命令不同,整个剩余行始终被视为\unrestrict 的参数,并且不会执行变量插值或反引号扩展。

相关条目

文档与源码

来源构建
版本
18.7
构建
https://ftp.postgresql.org/pub/source/v18.7/postgresql-18.7.tar.bz2
来源指纹
1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915

版本比较

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;最早采样版本不一定是实际引入版本。