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

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

百科 / 函数百科 / 9.6 变更

PostgreSQL 9.6 函数变更

相对 PostgreSQL 9.5 的差异:9.6 共有 508 个函数、631 条签名。

换一个对比基准

汇总

  1. 32新增函数
  2. 0移除函数
  3. 8签名变化
  4. 1换了分组

「签名变化」指函数还在,但它的签名有增有删;只改说明文字不计入。「换了分组」指手册把这个函数挪到了另一页。

新增函数32

  • num_nonnulls比较函数和操作符

    返回非 null 参数的数量。

    num_nonnulls ( VARIADIC "any" )

    1 条签名

  • num_nulls比较函数和操作符

    返回 null 参数的数量。

    num_nulls ( VARIADIC "any" )

    1 条签名

  • acosd数学函数和操作符

    反余弦,结果为度数

    acosd ( x )

    1 条签名

  • asind数学函数和操作符

    反正弦,结果为度数

    asind ( x )

    1 条签名

  • atan2d数学函数和操作符

    y/x的反正切,结果为度数

    atan2d ( y, x )

    1 条签名

  • atand数学函数和操作符

    反正切,结果为度数

    atand ( x )

    1 条签名

  • cosd数学函数和操作符

    余弦,参数为度数

    cosd ( x )

    1 条签名

  • cotd数学函数和操作符

    余切,参数为度数

    cotd ( x )

    1 条签名

  • scale数学函数和操作符

    参数的小数位数(小数部分的十进制位数)

    scale ( numeric ) → integer

    1 条签名

  • sind数学函数和操作符

    正弦,参数为度数

    sind ( x )

    1 条签名

  • tand数学函数和操作符

    正切,参数为度数

    tand ( x )

    1 条签名

  • parse_ident字符串函数和操作符

    将qualified_identifier拆分为一个标识符数组,去除各个标识符的引号。

    parse_ident ( qualified_identifier text [, strictmode boolean DEFAULT true ] ) → text[]

    1 条签名

  • array_to_tsvector文本搜索函数和操作符

    将文本字符串数组转换为tsvector。

    array_to_tsvector ( text[] ) → tsvector

    1 条签名

  • phraseto_tsquery文本搜索函数和操作符

    将文本转换为tsquery,根据指定的或默认配置对单词进行正规化。

    phraseto_tsquery ( [ config regconfig , ] query text ) → tsquery

    1 条签名

  • ts_delete文本搜索函数和操作符

    从vector中删除给定的lexeme的所有出现。

    ts_delete ( vector tsvector, lexeme text ) → tsvector

    2 条签名

  • ts_filter文本搜索函数和操作符

    只从vector中选择具有给定weights的元素。

    ts_filter ( vector tsvector, weights "char"[] ) → tsvector

    1 条签名

  • tsquery_phrase文本搜索函数和操作符

    构造一个短语查询,在连续的词位上搜索query1和query2的匹配项(与<->操作符相同)。

    tsquery_phrase ( query1 tsquery, query2 tsquery ) → tsquery

    2 条签名

  • tsvector_to_array文本搜索函数和操作符

    将tsvector转换为词位的数组。

    tsvector_to_array ( tsvector ) → text[]

    1 条签名

  • jsonb_insertJSON 函数和操作符

    返回插入new_value的target。

    jsonb_insert ( target jsonb, path text[], new_value jsonb [, insert_after boolean] ) → jsonb

    1 条签名

  • pg_blocking_pids系统信息函数

    返回一个数组,包含阻止指定进程 ID 对应的服务器进程获取锁的会话进程 ID;如果不存在这样的服务器进程,或该进程未被阻塞,则返回空数组。

    pg_blocking_pids ( int ) → int[]

    1 条签名

  • pg_control_checkpoint系统信息函数

    返回有关当前检查点状态的信息,如表 9.90所展示。

    pg_control_checkpoint ( ) → record

    1 条签名

  • pg_control_init系统信息函数

    返回有关集簇初始化状态的信息,如表 9.92所展示。

    pg_control_init ( ) → record

    1 条签名

  • pg_control_recovery系统信息函数

    返回有关恢复状态的信息,如表 9.93所展示。

    pg_control_recovery ( ) → record

    1 条签名

  • pg_control_system系统信息函数

    返回有关当前控制文件状态的信息,如表 9.91所展示。

    pg_control_system ( ) → record

    1 条签名

  • pg_index_column_has_property系统信息函数

    测试一个索引列是否具有指定名称的属性。

    pg_index_column_has_property ( index_oid, column_no, prop_name ) → boolean

    1 条签名

  • pg_index_has_property系统信息函数

    测试一个索引是否具有指定名称的属性。

    pg_index_has_property ( index_oid, prop_name ) → boolean

    1 条签名

  • pg_indexam_has_property系统信息函数

    测试索引访问方法是否具有指定名称的属性。

    pg_indexam_has_property ( am_oid, prop_name ) → boolean

    1 条签名

  • pg_notification_queue_usage系统信息函数

    返回待处理通知当前占用的空间占异步通知队列最大容量的比例(0–1)。

    pg_notification_queue_usage ( ) → double

    1 条签名

  • gin_clean_pending_list系统管理函数

    将指定 GIN 索引的“待处理”列表中的条目批量移入主 GIN 数据结构,从而清理该列表。

    gin_clean_pending_list ( index regclass ) → bigint

    1 条签名

  • pg_current_xlog_flush_location系统管理函数

    获取当前预写式日志刷盘位置

    pg_current_xlog_flush_location ( ) → pg_lsn

    1 条签名

  • pg_logical_emit_message系统管理函数

    发出逻辑解码消息。

    pg_logical_emit_message ( transactional bool, prefix text, content text ) → pg_lsn

    2 条签名

  • pg_size_bytes系统管理函数

    将人类可读格式的大小(由pg_size_pretty返回)转换为字节。

    pg_size_bytes ( text ) → bigint

    1 条签名

移除函数0

这一版没有移除函数。

签名变化8

函数 分组 增删 第一条新增签名
setweight 文本搜索函数和操作符 +2−1 setweight ( vector tsvector, weight "char" ) → tsvector
unnest 文本搜索函数和操作符 +1 unnest ( tsvector, OUT lexeme text, OUT positions smallint[], OUT weights text ) → setof record
brin_summarize_new_values 系统管理函数 +1−1 brin_summarize_new_values ( index regclass ) → integer
current_setting 系统管理函数 +1−1 current_setting ( setting_name [, missing_ok ] ) → text
pg_create_physical_replication_slot 系统管理函数 +1−1 pg_create_physical_replication_slot ( slot_name name [, immediately_reserve boolean ] ) → (slot_name name, xlog_position pg_lsn)
pg_replication_origin_xact_reset 系统管理函数 +1−1 pg_replication_origin_xact_reset ( ) → void
pg_start_backup 系统管理函数 +1−1 pg_start_backup ( label text [, fast boolean [, exclusive boolean ]] ) → pg_lsn
pg_stop_backup 系统管理函数 +1 pg_stop_backup ( exclusive boolean ) → setof record

换了分组1

1 个函数被手册挪到了另一页
  • unnest 数组函数和操作符 文本搜索函数和操作符