pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。
相对 PostgreSQL 9.5 的差异:9.6 共有 508 个函数、631 条签名。
「签名变化」指函数还在,但它的签名有增有删;只改说明文字不计入。「换了分组」指手册把这个函数挪到了另一页。
num_nonnulls比较函数和操作符
返回非空参数的数量。
num_nonnulls ( VARIADIC "any" )
num_nulls比较函数和操作符
返回空参数的数量。
num_nulls ( VARIADIC "any" )
acosd数学函数和操作符
反余弦,结果为度数
acosd ( x )
asind数学函数和操作符
反正弦,结果为度数
asind ( x )
atan2d数学函数和操作符
y/x的反正切,结果为度数
atan2d ( y, x )
atand数学函数和操作符
反正切,结果为度数
atand ( x )
cosd数学函数和操作符
余弦,参数为度数
cosd ( x )
cotd数学函数和操作符
余切,参数为度数
cotd ( x )
scale数学函数和操作符
参数的刻度(小数点后的位数)
scale ( numeric ) → integer
sind数学函数和操作符
正弦,参数为度数
sind ( x )
tand数学函数和操作符
正切,参数为度数
tand ( x )
parse_ident字符串函数和操作符
将qualified_identifier拆分为一个标识符数组,删除单个标识符的任何引用。
parse_ident ( qualified_identifier text [, strictmode boolean DEFAULT true ] ) → text[]
array_to_tsvector文本搜索函数和操作符
将文本字符串数组转换为tsvector。
array_to_tsvector ( text[] ) → tsvector
phraseto_tsquery文本搜索函数和操作符
将文本转换为tsquery,根据指定的或默认配置对单词进行标准化。
phraseto_tsquery ( [ config regconfig , ] query text ) → tsquery
ts_delete文本搜索函数和操作符
从vector中删除给定的lexeme的任何出现。
ts_delete ( vector tsvector, lexeme text ) → tsvector
ts_filter文本搜索函数和操作符
只从vector中选择具有给定weights的元素。
ts_filter ( vector tsvector, weights "char"[] ) → tsvector
tsquery_phrase文本搜索函数和操作符
构造一个短语查询,在连续的词位上搜索query1和query2的匹配项(与<->操作符相同)。
tsquery_phrase ( query1 tsquery, query2 tsquery ) → tsquery
tsvector_to_array文本搜索函数和操作符
将tsvector转换为词位的数组。
tsvector_to_array ( tsvector ) → text[]
jsonb_insertJSON 函数和操作符
返回插入new_value的target。
jsonb_insert ( target jsonb, path text[], new_value jsonb [, insert_after boolean] ) → jsonb
pg_blocking_pids系统信息函数和操作符
返回阻止服务器进程的会话的进程ID数组,该进程ID与指定的进程ID一起获取锁定,如果没有这样的服务器进程或者没有被阻塞,则返回一个空数组。
pg_blocking_pids ( int ) → int[]
pg_control_checkpoint系统信息函数和操作符
返回有关当前检查点状态的信息, 如 Table 9.89所展示。
pg_control_checkpoint ( ) → record
pg_control_init系统信息函数和操作符
返回有关集簇初始化状态的信息,如 Table 9.91所展示。
pg_control_init ( ) → record
pg_control_recovery系统信息函数和操作符
返回有关恢复状态的信息,如 Table 9.92所展示。
pg_control_recovery ( ) → record
pg_control_system系统信息函数和操作符
返回有关当前控制文件状态的信息,如 Table 9.90 所展示。
pg_control_system ( ) → record
pg_index_column_has_property系统信息函数和操作符
测试一个索引列是否具有命名属性。
pg_index_column_has_property ( index_oid, column_no, prop_name ) → boolean
pg_index_has_property系统信息函数和操作符
测试一个索引是否具有命名属性。
pg_index_has_property ( index_oid, prop_name ) → boolean
pg_indexam_has_property系统信息函数和操作符
测试索引访问方法是否具有命名属性。
pg_indexam_has_property ( am_oid, prop_name ) → boolean
pg_notification_queue_usage系统信息函数和操作符
返回当前被等待处理的通知所占用的异步通知队列最大尺寸的分数(0–1)。
pg_notification_queue_usage ( ) → double
gin_clean_pending_list系统管理函数
清理指定GIN索引的“pending”列表,通过移除里面的条目,以大批的方式,到主要的GIN数据结构。
gin_clean_pending_list ( index regclass ) → bigint
pg_current_xlog_flush_location系统管理函数
Get current transaction log flush location
pg_current_xlog_flush_location ( ) → pg_lsn
pg_logical_emit_message系统管理函数
发出逻辑解码消息。
pg_logical_emit_message ( transactional bool, prefix text, content text ) → pg_lsn
pg_size_bytes系统管理函数
将人可阅读的格式的大小(由pg_size_pretty返回)转换为字节。
pg_size_bytes ( text ) → bigint
这一版没有移除函数。
| 函数 | 分组 | 增删 | 第一条新增签名 |
|---|---|---|---|
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 |
unnest
数组函数和操作符
文本搜索函数和操作符