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

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

百科 / 函数百科 / 20 devel 变更

PostgreSQL 20 devel 函数变更

相对 PostgreSQL 19rc2 的差异:20 devel 共有 691 个函数、903 条签名。

PostgreSQL 20 开发版尚未定稿:函数清单取自固定英文手册快照,中文说明取自本站同版手册,正式发布前仍可能变化。

换一个对比基准

汇总

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

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

新增函数6

  • getdatabaseencoding字符串函数和操作符

    返回当前数据库的编码名称。

    getdatabaseencoding ( ) → name

    1 条签名

  • pg_get_database_ddl系统信息函数和操作符

    重建指定数据库的 CREATE DATABASE 语句,随后返回用于连接数上限、模板状态和配置设置的 ALTER DATABASE 语句。每条语句作为单独一行返回。当 pretty 为 true 时,启用美化输出。当 owner 为 false 时,省略 OWNER 子句。当 tablespace 为 false 时,省略 TABLESPACE 子句。

    pg_get_database_ddl ( database regdatabase [, pretty boolean DEFAULT false] [, owner boolean DEFAULT true] [, tablespace boolean DEFAULT true] ) → setof text

    1 条签名

  • pg_get_role_ddl系统信息函数和操作符

    重建给定角色的 CREATE ROLE 语句以及任何 ALTER ROLE ... SET 语句。每条语句作为单独一行返回。密码信息绝不会包含在输出中。当 pretty 为 true 时,启用美化输出。当 memberships 为 false 时,省略用于角色成员关系的 GRANT 语句。

    pg_get_role_ddl ( role regrole [, pretty boolean DEFAULT false] [, memberships boolean DEFAULT true] ) → setof text

    1 条签名

  • pg_get_tablespace_ddl系统信息函数和操作符

    重建指定表空间(按 OID 或名称指定)的 CREATE TABLESPACE 语句。如果该表空间设置了选项,还会返回一条 ALTER TABLESPACE ... SET 语句。每条语句作为单独一行返回。当 pretty 为 true 时,启用美化输出。当 owner 为 false 时,省略 OWNER 子句。

    pg_get_tablespace_ddl ( tablespace oid [, pretty boolean DEFAULT false] [, owner boolean DEFAULT true] ) → setof text

    2 条签名

  • pg_disable_data_checksums系统管理函数

    为集簇禁用数据校验和的计算与验证。这会在禁用数据校验和的过程中把状态设置为 inprogress-off。当所有活动后端都停止验证数据校验和后,数据校验和状态将被设置为 off。

    pg_disable_data_checksums () → void

    1 条签名

  • pg_enable_data_checksums系统管理函数

    启动为集簇启用数据校验和的过程。这会把数据校验和状态设置为 inprogress-on,并启动一个后台工作进程来处理所有数据库中的所有页并为其启用数据校验和。当所有页都处理完后,集簇会自动把数据校验和状态设置为 on。该操作会写入 WAL,并复制到所有备库。

    pg_enable_data_checksums ( [cost_delay int [, cost_limit int]] ) → void

    1 条签名

移除函数0

这一版没有移除函数。

签名变化25

函数 分组 增删 第一条新增签名
parse_ident 字符串函数和操作符 +1−1 parse_ident ( qualified_identifier text [, strict_mode boolean DEFAULT true ] ) → text[]
make_timestamp 日期/时间函数和操作符 +1−1 make_timestamp ( year int, month int, day int, hour int, min int, sec double precision ) → timestamp
make_timestamptz 日期/时间函数和操作符 +1−1 make_timestamptz ( year int, month int, day int, hour int, min int, sec double precision [, timezone text ] ) → timestamp with time zone
ts_parse 文本检索函数和操作符 +2−2 ts_parse ( parser_name text, document text ) → setof record ( tokid integer, token text )
ts_stat 文本检索函数和操作符 +1−1 ts_stat ( sqlquery text [, weights text ] ) → setof record ( word text, ndoc integer, nentry integer )
table_to_xml XML 函数 +1−1 table_to_xml ( table regclass, nulls boolean, tableforest boolean, targetns text ) → xml
table_to_xml_and_xmlschema XML 函数 +1−1 table_to_xml_and_xmlschema ( table regclass, nulls boolean, tableforest boolean, targetns text ) → xml
table_to_xmlschema XML 函数 +1−1 table_to_xmlschema ( table regclass, nulls boolean, tableforest boolean, targetns text ) → xml
JSON_TABLE JSON 函数和操作符 +1−1 JSON_TABLE ( context_item, path_expression [ AS json_path_name] [ PASSING { value AS varname } [, ...] ] COLUMNS ( json_table_column [, ...] ) [ PLAN ( json_table_plan ) | PLAN DEFAULT ( { OUTER | INNER } [ , { CROSS | UNION } ] | { CROSS | UNION } [ , { OUTER | INNER } ] ) ] [ { ERROR | EMPTY [ARRAY]} ON ERROR] )
jsonb_insert JSON 函数和操作符 +1−1 jsonb_insert ( target jsonb, path text[], new_value jsonb [, insert_after boolean ] ) → jsonb
jsonb_set JSON 函数和操作符 +1−1 jsonb_set ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean ] ) → jsonb
jsonb_set_lax JSON 函数和操作符 +1−1 jsonb_set_lax ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean [, null_value_treatment text ]] ) → jsonb
any_value 聚合函数 +1−1 any_value ( anyelement ) → same as input type
max 聚合函数 +1−1 max ( see text ) → same as input type
min 聚合函数 +1−1 min ( see text ) → same as input type
stddev 聚合函数 +1−1 stddev ( numeric_type ) → double precision for real or double precision, otherwise numeric
stddev_pop 聚合函数 +1−1 stddev_pop ( numeric_type ) → double precision for real or double precision, otherwise numeric
stddev_samp 聚合函数 +1−1 stddev_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric
var_pop 聚合函数 +1−1 var_pop ( numeric_type ) → double precision for real or double precision, otherwise numeric
var_samp 聚合函数 +1−1 var_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric
variance 聚合函数 +1−1 variance ( numeric_type ) → double precision for real or double precision, otherwise numeric
pg_get_multixact_stats 系统信息函数和操作符 +1−1 pg_get_multixact_stats () → record ( num_mxids integer, num_members bigint, members_size bigint, oldest_multixact xid )
pg_input_error_info 系统信息函数和操作符 +1−1 pg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text )
pg_column_toast_chunk_id 系统管理函数 +1−1 pg_column_toast_chunk_id ( "any" ) → oid8
pg_logical_emit_message 系统管理函数 +2−2 pg_logical_emit_message ( transactional boolean, prefix text, content text [, flush boolean DEFAULT false] ) → pg_lsn

换了分组0

这一版没有函数换分组。