\gdesc
显示当前查询缓冲区中查询结果的描述(即列名和数据类型)。查询并不会实际执行;不过,如果其中存在语法错误,会按通常的方式报告。
当前查看 PostgreSQL 18.6。
说明
显示当前查询缓冲区中查询结果的描述(即列名和数据类型)。查询并不会实际执行;不过,如果其中存在语法错误,会按通常的方式报告。
- 客户端
- psql 18.6
- 区分大小写的写法
- \gdesc
用法
\gdesc本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \gdesc | 此语法签名未列出 |
手册定义
\gdesc-
显示当前查询缓冲区中查询结果的描述(即列名和数据类型)。查询并不会实际执行;不过,如果其中存在语法错误,会按通常的方式报告。
如果当前查询缓冲区为空,则改为描述最近发送的查询。
相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 10 → 11: 新增收录。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 10
+++ PostgreSQL 11
@@ -1 +1,8 @@
-该版未收录
+{
+ "definition": "Shows the description (that is, the column names and data types) of the result of the current query buffer. The query is not actually executed; however, if it contains some type of syntax error, that error will be reported in the normal way. If the current query buffer is empty, the most recently sent query is described instead.",
+ "modifiers": [],
+ "signature": "\\gdesc",
+ "spellings": [
+ "\\gdesc"
+ ]
+}
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 11 至 20;最早采样版本不一定是实际引入版本。