\gx
\gx 与 \g 等价,但会强制此查询使用扩展输出模式,相当于在 \pset 选项列表中指定 expanded=on。另见 \x。
当前查看 PostgreSQL 18。
中文定义与说明
\gx等同于\g,不同之处在于它强制为此查询启用扩展输出模式,就好像在\pset选项列表中包含了expanded=on一样。另请参见\x。
说明
\gx 与 \g 等价,但会强制此查询使用扩展输出模式,相当于在 \pset 选项列表中指定 expanded=on。另见 \x。
- 客户端
- psql 18.7
- 区分大小写的写法
- \gx
用法
\gx [ ( option = value [...]) ] [ filename ] \gx [ ( option = value [...]) ] [ | command ]本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \gx | 此语法签名未列出 |
手册定义
\gx等同于\g,不同之处在于它强制为此查询启用扩展输出模式,就好像在\pset选项列表中包含了expanded=on一样。另请参见\x。
相关条目
文档与源码
来源构建
- 版本
- 18.7
- 构建
- https://ftp.postgresql.org/pub/source/v18.7/postgresql-18.7.tar.bz2
- 来源指纹
1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915
版本比较
PostgreSQL 12 → 13: 属性变化。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 12
+++ PostgreSQL 13
@@ -1,7 +1,7 @@
{
- "definition": "\\gx is equivalent to \\g , but forces expanded output mode for this query. See \\x .",
+ "definition": "\\gx is equivalent to \\g , except that it forces expanded output mode for this query, as if expanded=on were included in the list of \\pset options. See also \\x .",
"modifiers": [],
- "signature": "\\gx [ filename ] \\gx [ | command ]",
+ "signature": "\\gx [ ( option = value [...]) ] [ filename ] \\gx [ ( option = value [...]) ] [ | command ]",
"spellings": [
"\\gx"
]
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 10 至 20;最早采样版本不一定是实际引入版本。