pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。
相对 PostgreSQL 13 的差异:14 共有 597 个函数、783 条签名。
「签名变化」指函数还在,但它的签名有增有删;只改说明文字不计入。「换了分组」指手册把这个函数挪到了另一页。
string_to_table字符串函数和操作符
在出现delimiter 时拆分string,并将结果字段作为text行的集合返回。
string_to_table ( string text, delimiter text [, null_string text ] ) → setof text
unistr字符串函数和操作符
计算参数中的转义Unicode字符。
unistr ( text ) → text
bit_count二进制串函数和操作符
返回二进制字符串中设置的位数(也被认为“popcount”)。
bit_count ( bytes bytea ) → bigint
date_bin时间/日期函数和操作符
将输入按指定的间隔进行分箱(bin),对齐到指定的原点;参见Section 9.9.3
date_bin ( interval, timestamp, timestamp ) → timestamp
trim_array数组函数和操作符
通过删除最后的n元素来裁剪数组。
trim_array ( array anyarray, n integer ) → anyarray
multirange范围/多范围函数和操作符
返回仅包含给定范围的多范围。
multirange ( anyrange ) → anymultirange
bit_xor聚合函数
计算所有非空输入值的按位异或。
bit_xor ( smallint ) → smallint
range_agg聚合函数
计算非空输入值的并集。
range_agg ( value anyrange ) → anymultirange
计算非空输入值的交集。
range_intersect_agg ( value anyrange ) → anyrange
pg_get_catalog_foreign_keys系统信息函数和操作符
返回一组记录,描述存在于PostgreSQL系统目录中的外键关系。
pg_get_catalog_foreign_keys () → setof record ( fktable regclass, fkcols text[], pktable regclass, pkcols text[], is_array boolean, is_opt boolean )
pg_get_partition_constraintdef系统信息函数和操作符
重构分区约束的定义。
pg_get_partition_constraintdef ( table oid ) → text
pg_xact_commit_timestamp_origin系统信息函数和操作符
返回事务的提交时间戳和复制起源。
pg_xact_commit_timestamp_origin ( xid ) → record ( timestamp timestamp with time zone, roident oid)
pg_column_compression系统管理函数
显示用于压缩单个变长值的压缩算法。
pg_column_compression ( "any" ) → text
pg_get_wal_replay_pause_state系统管理函数
返回恢复暂停状态。
pg_get_wal_replay_pause_state () → text
pg_log_backend_memory_contexts系统管理函数
请求记录具有指定进程ID的后端的内存上下文。
pg_log_backend_memory_contexts ( pid integer ) → boolean
这一版没有移除函数。
| 函数 | 分组 | 增删 | 第一条新增签名 |
|---|---|---|---|
width_bucket |
数学函数和操作符 | +1−1 | width_bucket ( operand anycompatible, thresholds anycompatiblearray ) → integer |
lower |
字符串函数和操作符 | +1 | lower ( anymultirange ) → anyelement |
ltrim |
字符串函数和操作符 | +1 | ltrim ( bytes bytea, bytesremoved bytea ) → bytea |
rtrim |
字符串函数和操作符 | +1 | rtrim ( bytes bytea, bytesremoved bytea ) → bytea |
substring |
字符串函数和操作符 | +2 | substring ( string text SIMILAR pattern text ESCAPE escape text ) → text |
trim |
字符串函数和操作符 | +2−2 | trim ( [ LEADING | TRAILING | BOTH ] bytesremoved bytea FROM bytes bytea ) → bytea |
upper |
字符串函数和操作符 | +1 | upper ( anymultirange ) → anyelement |
extract |
时间/日期函数和操作符 | +2−2 | extract ( field from timestamp ) → numeric |
unnest |
文本搜索函数和操作符 | +1 | unnest ( anymultirange ) → setof anyrange |
array_append |
数组函数和操作符 | +1−1 | array_append ( anycompatiblearray, anycompatible ) → anycompatiblearray |
array_cat |
数组函数和操作符 | +1−1 | array_cat ( anycompatiblearray, anycompatiblearray ) → anycompatiblearray |
array_position |
数组函数和操作符 | +1−1 | array_position ( anycompatiblearray, anycompatible [, integer ] ) → integer |
array_positions |
数组函数和操作符 | +1−1 | array_positions ( anycompatiblearray, anycompatible ) → integer[] |
array_prepend |
数组函数和操作符 | +1−1 | array_prepend ( anycompatible, anycompatiblearray ) → anycompatiblearray |
array_remove |
数组函数和操作符 | +1−1 | array_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray |
array_replace |
数组函数和操作符 | +1−1 | array_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray |
isempty |
范围/多范围函数和操作符 | +1 | isempty ( anymultirange ) → boolean |
lower_inc |
范围/多范围函数和操作符 | +1 | lower_inc ( anymultirange ) → boolean |
lower_inf |
范围/多范围函数和操作符 | +1 | lower_inf ( anymultirange ) → boolean |
range_merge |
范围/多范围函数和操作符 | +1 | range_merge ( anymultirange ) → anyrange |
upper_inc |
范围/多范围函数和操作符 | +1 | upper_inc ( anymultirange ) → boolean |
upper_inf |
范围/多范围函数和操作符 | +1 | upper_inf ( anymultirange ) → boolean |
lag |
窗口函数 | +1−1 | lag ( value anycompatible [, offset integer [, default anycompatible ]] ) → anycompatible |
lead |
窗口函数 | +1−1 | lead ( value anycompatible [, offset integer [, default anycompatible ]] ) → anycompatible |
pg_get_keywords |
系统信息函数和操作符 | +1−1 | pg_get_keywords () → setof record ( word text, catcode "char", barelabel boolean, catdesc text, baredesc text ) |
pg_last_committed_xact |
系统信息函数和操作符 | +1−1 | pg_last_committed_xact () → record ( xid xid, timestamp timestamp with time zone, roident oid ) |
pg_create_logical_replication_slot |
系统管理函数 | +1−1 | pg_create_logical_replication_slot ( slot_name name, plugin name [, temporary boolean, twophase boolean ] ) → record ( slot_name name, lsn pg_lsn ) |
pg_terminate_backend |
系统管理函数 | +1−1 | pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean |
string_to_array
数组函数和操作符
字符串函数和操作符