\dC
列出类型转换。如果指定了 pattern ,则只列出其源类型或目标类型与模式匹配的类型转换。如果在命令名后追加 x ,结果会以扩展模式显示。如果在命令名后追加 + ,则会显示每个类型转换的附加信息,包括其底层函数是否防漏,以及该类型转换的描述。
当前查看 PostgreSQL 18.6。
说明
列出类型转换。如果指定了 pattern ,则只列出其源类型或目标类型与模式匹配的类型转换。如果在命令名后追加 x ,结果会以扩展模式显示。如果在命令名后追加 + ,则会显示每个类型转换的附加信息,包括其底层函数是否防漏,以及该类型转换的描述。
- 客户端
- psql 18.6
- 区分大小写的写法
- \dC
用法
\dC[x+] [ pattern ]本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \dC | x+ |
手册定义
\dC[x+] [pattern]-
列出类型转换。如果指定了
pattern,则只列出其源类型或目标类型与模式匹配的类型转换。如果在命令名后追加x,结果会以扩展模式显示。如果在命令名后追加+,则会显示每个类型转换的附加信息,包括其底层函数是否防漏,以及该类型转换的描述。
相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 17 → 18: 属性变化。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 17
+++ PostgreSQL 18
@@ -1,12 +1,12 @@
{
- "definition": "Lists type casts. If pattern is specified, only casts whose source or target types match the pattern are listed. If + is appended to the command name, each object is listed with its associated description.",
+ "definition": "Lists type casts. If pattern is specified, only casts whose source or target types match the pattern are listed. If x is appended to the command name, the results are displayed in expanded mode. If + is appended to the command name, additional information about each cast is shown, including whether its underlying function is leakproof, and the cast's description.",
"modifiers": [
{
"command": "\\dC",
- "modifiers": "+"
+ "modifiers": "x+"
}
],
- "signature": "\\dC[+] [ pattern ]",
+ "signature": "\\dC[x+] [ pattern ]",
"spellings": [
"\\dC"
]
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 10 至 20;最早采样版本不一定是实际引入版本。