\do
列出操作符及其操作数类型和结果类型。如果指定了 pattern ,则只列出名称与模式匹配的操作符。如果指定了一个 arg_pattern ,则只列出其右参数类型名称与该模式匹配的前缀操作符。如果指定了两个 arg_pattern ,则只列出参数类型名称与这些模式匹配的二元操作符。(对于一元操作符未使用的参数,也可以写成 - 。)默认情况下,只显示用户创建的对象;提供模式或 S 修饰符可包括系统对象。如果在命令名后追加 x ,结果会以扩展模式显示。如果在命令名后追加 + ,则会显示每个操作符的附…
当前查看 PostgreSQL 18.6。
说明
列出操作符及其操作数类型和结果类型。如果指定了 pattern ,则只列出名称与模式匹配的操作符。如果指定了一个 arg_pattern ,则只列出其右参数类型名称与该模式匹配的前缀操作符。如果指定了两个 arg_pattern ,则只列出参数类型名称与这些模式匹配的二元操作符。(对于一元操作符未使用的参数,也可以写成 - 。)默认情况下,只显示用户创建的对象;提供模式或 S 修饰符可包括系统对象。如果在命令名后追加 x ,结果会以扩展模式显示。如果在命令名后追加 + ,则会显示每个操作符的附加信息,包括底层函数名以及它是否防漏。
- 客户端
- psql 18.6
- 区分大小写的写法
- \do
用法
\do[Sx+] [ pattern [ arg_pattern [ arg_pattern ] ] ]本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \do | Sx+ |
手册定义
\do[Sx+] [pattern[arg_pattern[arg_pattern] ] ]-
列出操作符及其操作数类型和结果类型。如果指定了
pattern,则只列出名称与模式匹配的操作符。如果指定了一个arg_pattern,则只列出其右参数类型名称与该模式匹配的前缀操作符。如果指定了两个arg_pattern,则只列出参数类型名称与这些模式匹配的二元操作符。(对于一元操作符未使用的参数,也可以写成-。)默认情况下,只显示用户创建的对象;提供模式或S修饰符可包括系统对象。如果在命令名后追加x,结果会以扩展模式显示。如果在命令名后追加+,则会显示每个操作符的附加信息,包括底层函数名以及它是否防漏。
相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 13 → 14: 属性变化。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 13
+++ PostgreSQL 14
@@ -1,12 +1,12 @@
{
- "definition": "Lists operators with their operand and result types. If pattern is specified, only operators whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the S modifier to include system objects. If + is appended to the command name, additional information about each operator is shown, currently just the name of the underlying function.",
+ "definition": "Lists operators with their operand and result types. If pattern is specified, only operators whose names match the pattern are listed. If one arg_pattern is specified, only prefix operators whose right argument's type name matches that pattern are listed. If two arg_pattern s are specified, only binary operators whose argument type names match those patterns are listed. (Alternatively, write - for the unused argument of a unary operator.) By default, only user-created objects are shown; supply a pattern or the S modifier to include system objects. If + is appended to the command name, additional information about each operator is shown, currently just the name of the underlying function.",
"modifiers": [
{
"command": "\\do",
"modifiers": "S+"
}
],
- "signature": "\\do[S+] [ pattern ]",
+ "signature": "\\do[S+] [ pattern [ arg_pattern [ arg_pattern ] ] ]",
"spellings": [
"\\do"
]
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 10 至 20;最早采样版本不一定是实际引入版本。