PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
error_on_null检查输入是否为 null 值;如果是,则生成错误;否则返回输入。
Checks if the input is the null value, generating an error if so; otherwise, returns the input.
error_on_null ( anyelement ) → anyelement
比较函数和操作符函数 · 比较函数和操作符
every这是标准 SQL 中与bool_and等价的函数。
This is the SQL standard's equivalent to bool_and.
every ( boolean ) → boolean
聚合函数函数 · 聚合函数
existexist ( hstore, text ) → boolean hstore是否包含该键? exist('a=>1', 'a') → thstore — hstore 键/值数据类型 › hstore 操作符和函数
exp指数函数(e的给定次幂)
Exponential (e raised to the given power)
exp ( numeric ) → numeric
exp ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
extract获取时间戳子字段;参见第 9.9.1 节
Get timestamp subfield; see Section 9.9.1
extract ( field FROM timestamp ) → numeric
extract ( field FROM interval ) → numeric
EXTRACT(field FROM source)
日期/时间函数和操作符函数 · 日期/时间函数和操作符
factorial阶乘
Factorial
factorial ( bigint ) → numeric
数学函数和操作符函数 · 数学函数和操作符
family返回地址的地址族:4 对应 IPv4,6 对应 IPv6。
Returns the address's family: 4 for IPv4, 6 for IPv6.
family ( inet ) → integer
网络地址函数和操作符函数 · 网络地址函数和操作符
first_value返回在窗口帧的第一行求得的value。
Returns value evaluated at the row that is the first row of the window frame.
first_value ( value anyelement ) [null treatment] → anyelement
窗口函数函数 · 窗口函数
floor小于或等于参数的最接近整数
Nearest integer less than or equal to argument
floor ( numeric ) → numeric
floor ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
format根据格式字符串对参数进行格式化;参见第 9.4.1 节。
Formats arguments according to a format string; see Section 9.4.1.
format ( formatstr text [, formatarg "any" [, ...] ] ) → text
format(formatstr text [, formata…函数 · 字符串函数和操作符
format_type返回由其类型OID和可能的类型修饰符标识的数据类型的SQL名称。
Returns the SQL name for a data type that is identified by its type OID and possibly a type modifier.
format_type ( type oid, typemod integer ) → text
系统信息函数…函数 · 系统信息函数和操作符
gamma伽马函数
Gamma function
gamma ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
gc_to_secgc_to_sec ( float8 ) → float8 将地球表面两点间的大圆距离转换为它们之间的普通直线(割线)距离。earthdistance — 计算大圆距离 › 基于立方体的地球距离
gcd最大公约数(能将两个输入数整除而无余数的最大正数);如果两个输入为零则返回 0;适用于 integer、bigint 和 numeric
Greatest common divisor (the largest positive number that divides both inputs with no remainder); returns 0 if both input…函数 · 数学函数和操作符
gen_random_uuid生成一个版本 4(随机)的 UUID
Generates a version 4 (random) UUID
gen_random_uuid ( ) → uuid
UUID 函数函数 · UUID 函数
generate_series从start到stop生成一系列的值,步长为step。
Generates a series of values from start to stop, with a step size of step.
generate_series ( start integer, stop integer [, step integer] ) → setof integer
genera…函数 · 集合返回函数
generate_subscripts生成一个包含给定数组第dim维的有效下标的序列。
Generates a series comprising the valid subscripts of the dim'th dimension of the given array.
generate_subscripts ( array anyarray, dim integer ) → setof integer
ge…函数 · 集合返回函数
get_bit从二进制字符串中提取编号为 n 的位。
Extracts n'th bit from binary string.
get_bit ( bytes bytea, n bigint ) → integer
get_bit ( bits bit, n integer ) → integer
二进制串函数和操作符函数 · 二进制串函数和操作符
get_byte从二进制字符串中提取编号为 n 的字节。
Extracts n'th byte from binary string.
get_byte ( bytes bytea, n integer ) → integer
二进制串函数和操作符函数 · 二进制串函数和操作符
get_current_ts_config返回当前默认文本检索配置的 OID(由default_text_search_config设置)。
Returns the OID of the current default text search configuration (as set by default_text_search_config).
get_current_ts_config ( ) → regconf…函数 · 文本检索函数和操作符
getdatabaseencoding返回当前数据库的编码名称。
Returns current database encoding name.
getdatabaseencoding ( ) → name
字符串函数和操作符函数 · 字符串函数和操作符
gin_clean_pending_list将指定 GIN 索引的“待处理”列表中的条目批量移入主 GIN 数据结构,从而清理该列表。
Cleans up the “pending” list of the specified GIN index by moving entries in it, in bulk, to the main GIN data structure.
gin_clean_pending_list…函数 · 系统管理函数
GREATESTGREATEST和LEAST函数从由任意数量的表达式组成的列表中选取最大值或最小值。
GREATEST(value [, ...])
条件表达式函数 · 条件表达式
GROUPING返回一个位掩码,指示哪些GROUP BY表达式未包含在当前分组集中。
Returns a bit mask indicating which GROUP BY expressions are not included in the current grouping set.
GROUPING ( group_by_expression(s) ) → integer
聚合函数函数 · 聚合函数
has_any_column_privilege用户是否对表的至少一列具有权限?如果拥有整个表的权限,或至少一列获得了该权限的列级授权,则返回真。
Does user have privilege for any column of table? This succeeds either if the privilege is held for the whole table, or if there is a column…函数 · 系统信息函数和操作符
has_column_privilege用户对指定的表列有权限么?如果对整个表持有权限,或者对列授予了列级别的权限,则会成功。
Does user have privilege for the specified table column? This succeeds either if the privilege is held for the whole table, or if there is a colum…函数 · 系统信息函数和操作符
has_database_privilege用户对数据库有权限吗?允许的权限类型为CREATE、CONNECT、TEMPORARY 和 TEMP(相当于 TEMPORARY)。
Does user have privilege for database? Allowable privilege types are CREATE, CONNECT, TEMPORARY, and TEMP (which is equival…函数 · 系统信息函数和操作符
has_foreign_data_wrapper_privilege用户是否具有外部数据包装器权限?唯一允许的权限类型为USAGE。
Does user have privilege for foreign-data wrapper? The only allowable privilege type is USAGE.
has_foreign_data_wrapper_privilege ( [user name or oid, ] fdw …函数 · 系统信息函数和操作符
has_function_privilege用户对函数有权限吗?唯一允许的权限类型是EXECUTE。
Does user have privilege for function? The only allowable privilege type is EXECUTE.
has_function_privilege ( [user name or oid, ] function text or oid, privileg…函数 · 系统信息函数和操作符
has_language_privilege用户对语言有权限吗?唯一允许的权限类型是USAGE。
Does user have privilege for language? The only allowable privilege type is USAGE.
has_language_privilege ( [user name or oid, ] language text or oid, privilege te…函数 · 系统信息函数和操作符
has_largeobject_privilege用户是否拥有大对象的权限?可用的权限类型是 SELECT 和 UPDATE。
Does user have privilege for large object? Allowable privilege types are SELECT and UPDATE.
has_largeobject_privilege ( [user name or oid, ] largeobjec…函数 · 系统信息函数和操作符
has_parameter_privilege用户是否具有配置参数的权限?参数名称不区分大小写。
Does user have privilege for configuration parameter? The parameter name is case-insensitive.
has_parameter_privilege ( [user name or oid, ] parameter text, privile…函数 · 系统信息函数和操作符
has_schema_privilege用户对模式有权限吗?允许的权限类型是CREATE 和USAGE。
Does user have privilege for schema? Allowable privilege types are CREATE and USAGE.
has_schema_privilege ( [user name or oid, ] schema text or oid, privileg…函数 · 系统信息函数和操作符
has_sequence_privilege用户是否具有序列权限?允许的权限类型为USAGE、SELECT和UPDATE。
Does user have privilege for sequence? Allowable privilege types are USAGE, SELECT, and UPDATE.
has_sequence_privilege ( [user name or oid, ] sequence…函数 · 系统信息函数和操作符
has_server_privilege用户是否对外部服务器有权限?唯一允许的权限类型是USAGE。
Does user have privilege for foreign server? The only allowable privilege type is USAGE.
has_server_privilege ( [user name or oid, ] server text or oid, privil…函数 · 系统信息函数和操作符
has_table_privilege用户对表有权限吗?允许的权限类型有SELECT、INSERT、UPDATE、DELETE、TRUNCATE、REFERENCES、TRIGGER和MAINTAIN。
Does user have privilege for table? Allowable privilege types are SELECT, INSERT, UPDATE, DELETE, TRUNCATE,…函数 · 系统信息函数和操作符
has_tablespace_privilege用户对表空间有权限吗?唯一允许的权限类型是CREATE。
Does user have privilege for tablespace? The only allowable privilege type is CREATE.
has_tablespace_privilege ( [user name or oid, ] tablespace text or oid, pri…函数 · 系统信息函数和操作符
has_type_privilege用户对数据类型有权限吗?唯一允许的权限类型是 USAGE。
Does user have privilege for data type? The only allowable privilege type is USAGE.
has_type_privilege ( [user name or oid, ] type text or oid, privilege text )…函数 · 系统信息函数和操作符
hashhash ( value [, seed ] ) → integer 这是 hash_murmur2 的别名。 hash(10, 5432) → -5817877081768721676pgbench › 注解 › 内置函数
hash_fnv1ahash_fnv1a ( value [, seed ] ) → integer 计算 FNV-1a hash。 hash_fnv1a(10, 5432) → -7793829335365542153pgbench › 注解 › 内置函数
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开