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

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

百科 / psql 命令 / 描述数据库对象

\df

列出函数,以及它们的结果数据类型、参数数据类型和函数类型,函数类型分为 “ agg ” (聚合)、 “ normal ” 、 “ procedure ” 、 “ trigger ” 或 “ window ” 。要只显示特定类型的函数,请在命令后添加相应的字母 a 、 n 、 p 、 t 或 w 。如果指定了 pattern ,则只显示名称与模式匹配的函数。任何附加参数都是类型名模式,分别与函数第一、第二等参数的类型名匹配。(匹配到的函数可以比你指定的参数更多;若要防止这种情况,可将连字符 - …

当前查看 PostgreSQL 18.6。

说明

列出函数,以及它们的结果数据类型、参数数据类型和函数类型,函数类型分为 “ agg ” (聚合)、 “ normal ” 、 “ procedure ” 、 “ trigger ” 或 “ window ” 。要只显示特定类型的函数,请在命令后添加相应的字母 a 、 n 、 p 、 t 或 w 。如果指定了 pattern ,则只显示名称与模式匹配的函数。任何附加参数都是类型名模式,分别与函数第一、第二等参数的类型名匹配。(匹配到的函数可以比你指定的参数更多;若要防止这种情况,可将连字符 - 写成最后一个 arg_pattern 。)默认情况下,只显示用户创建的对象;提供模式或 S 修饰符可包括系统对象。如果在命令名后追加 x ,结果会以扩展模式显示。如果在命令名后追加 + ,则会显示每个函数的附加信息,包括易变性、并行安全性、所有者、安全分类、是否防漏、访问权限、语言、内部名称(仅适用于 C 和 internal 函数)以及描述。特定函数的源代码可通过 \sf 查看。

客户端
psql 18.6
区分大小写的写法
\df

用法

\df[anptwSx+] [ pattern [ arg_pattern ... ] ]

本版手册中的写法

命令手册中的后缀修饰符
\dfanptwSx+

手册定义

\df[anptwSx+] [ pattern [ arg_pattern ... ] ]

列出函数,以及它们的结果数据类型、参数数据类型和函数类型,函数类型分为“agg”(聚合)、“normal”、“procedure”、“trigger”或“window”。要只显示特定类型的函数,请在命令后添加相应的字母 a、n、p、t 或 w。如果指定了 pattern,则只显示名称与模式匹配的函数。任何附加参数都是类型名模式,分别与函数第一、第二等参数的类型名匹配。(匹配到的函数可以比你指定的参数更多;若要防止这种情况,可将连字符 - 写成最后一个 arg_pattern。)默认情况下,只显示用户创建的对象;提供模式或 S 修饰符可包括系统对象。如果在命令名后追加 x,结果会以扩展模式显示。如果在命令名后追加 +,则会显示每个函数的附加信息,包括易变性、并行安全性、所有者、安全分类、是否防漏、访问权限、语言、内部名称(仅适用于 C 和 internal 函数)以及描述。特定函数的源代码可通过 \sf 查看。

相关条目

文档与源码

来源构建
版本
18.6
构建
https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8

版本比较

PostgreSQL 10 → 11: 属性变化。

以下差异保留原始字段名与英文源描述。

--- PostgreSQL 10
+++ PostgreSQL 11
@@ -1,12 +1,12 @@
 {
-  "definition": "Lists functions, together with their result data types, argument data types, and function types, which are classified as “ agg ” (aggregate), “ normal ” , “ trigger ” , or “ window ” . To display only functions of specific type(s), add the corresponding letters a , n , t , or w to the command. If pattern is specified, only functions whose names match the pattern are shown. By default, only user-created objects are shown; supply a pattern or the S modifier to include system objects. If the form \\df+ is used, additional information about each function is shown, including volatility, parallel safety, owner, security classification, access privileges, language, source code and description. Tip To look up functions taking arguments or returning values of a specific data type, use your pager's search capability to scroll through the \\df output.",
+  "definition": "Lists functions, together with their result data types, argument data types, and function types, which are classified as “ agg ” (aggregate), “ normal ” , “ procedure ” , “ trigger ” , or “ window ” . To display only functions of specific type(s), add the corresponding letters a , n , p , t , or w to the command. If pattern is specified, only functions whose names match the pattern are shown. By default, only user-created objects are shown; supply a pattern or the S modifier to include system objects. If the form \\df+ is used, additional information about each function is shown, including volatility, parallel safety, owner, security classification, access privileges, language, source code and description. Tip To look up functions taking arguments or returning values of a specific data type, use your pager's search capability to scroll through the \\df output.",
   "modifiers": [
     {
       "command": "\\df",
-      "modifiers": "antwS+"
+      "modifiers": "anptwS+"
     }
   ],
-  "signature": "\\df[antwS+] [ pattern ]",
+  "signature": "\\df[anptwS+] [ pattern ]",
   "spellings": [
     "\\df"
   ]

比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。

相关条目

导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 10 至 20;最早采样版本不一定是实际引入版本。