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

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

PostgreSQL 文档检索

PG 18 · 按类别浏览,或输入名称与关键词

分类索引1772
hash_murmur2函数与运算符PG18hash_murmur2 ( value [, seed ] ) → integer 计算 MurmurHash2 hash。 hash_murmur2(10, 5432) → -5817877081768721676pgbench › 注解 › 内置函数 height函数与运算符本站词条计算框的垂直尺寸。 Computes vertical size of box. height ( box ) → double precision 几何函数和操作符函数 · 几何函数和操作符 host函数与运算符本站词条返回IP地址文本,忽略子网掩码。 Returns the IP address as text, ignoring the netmask. host ( inet ) → text 网络地址函数和操作符函数 · 网络地址函数和操作符 hostmask函数与运算符本站词条为地址的网络计算主机掩码。 Computes the host mask for the address's network. hostmask ( inet ) → inet 网络地址函数和操作符函数 · 网络地址函数和操作符 hstore函数与运算符PG18hstore ( record ) → hstore 从记录或行构造一个hstore。 hstore(ROW(1,2)) → "f1"=>"1", "f2"=>"2"hstore — hstore 键/值数据类型 › hstore 操作符和函数 hstore_to_array函数与运算符PG18hstore_to_array ( hstore ) → text[] 将hstore的键和值提取为键和值交替排列的数组。 hstore_to_array('a=>1,b=>2') → {a,1,b,2}hstore — hstore 键/值数据类型 › hstore 操作符和函数 hstore_to_json函数与运算符PG18hstore_to_json ( hstore ) → json 将hstore转换为json值,并将所有非空值转换为 JSON 字符串。 当hstore值被转换为json时,会隐式使用该函数。 hstore_to_json('"a key"=>1, b=>t, c=>null, d=>12345, e=>012345, f=>1.234, g=>2.345e+4') → {"…hstore — hstore 键/值数据类型 › hstore 操作符和函数 hstore_to_json_loose函数与运算符PG18hstore_to_json_loose ( hstore ) → json 将hstore转换为json值,但会尝试区分数值和布尔值,以便它们在 JSON 中不带引号。 hstore_to_json_loose('"a key"=>1, b=>t, c=>null, d=>12345, e=>012345, f=>1.234, g=>2.345e+4') → {"a key"…hstore — hstore 键/值数据类型 › hstore 操作符和函数 hstore_to_jsonb函数与运算符PG18hstore_to_jsonb ( hstore ) → jsonb 将hstore转换为jsonb值,并将所有非空值转换为 JSON 字符串。 当hstore值被转换为jsonb时,会隐式使用该函数。 hstore_to_jsonb('"a key"=>1, b=>t, c=>null, d=>12345, e=>012345, f=>1.234, g=>2.345e+4')…hstore — hstore 键/值数据类型 › hstore 操作符和函数 hstore_to_jsonb_loose函数与运算符PG18hstore_to_jsonb_loose ( hstore ) → jsonb 将hstore转换为jsonb值,但会尝试区分数值和布尔值,以便它们在 JSON 中不带引号。 hstore_to_jsonb_loose('"a key"=>1, b=>t, c=>null, d=>12345, e=>012345, f=>1.234, g=>2.345e+4') → {"a …hstore — hstore 键/值数据类型 › hstore 操作符和函数 hstore_to_matrix函数与运算符PG18hstore_to_matrix ( hstore ) → text[] 将hstore的键和值提取为二维数组。 hstore_to_matrix('a=>1,b=>2') → {{a,1},{b,2}}hstore — hstore 键/值数据类型 › hstore 操作符和函数 icount函数与运算符PG18icount ( integer[] ) → integer 返回数组中的元素个数。 icount('{1,2,3}'::integer[]) → 3intarray — 操作整数数组 › intarray 函数和操作符 icu_unicode_version函数与运算符本站词条如果服务器在构建时启用了 ICU 支持,则返回一个表示 ICU 所使用的 Unicode 版本的字符串;否则返回 NULL。 Returns a string representing the version of Unicode used by ICU, if the server was built with ICU support; otherwise returns N…函数 · 系统信息函数和操作符 idx函数与运算符PG18idx ( integer[], item integer ) → integer 返回第一个与item匹配的数组元素的索引,若无匹配则返回 0。 idx(array[11,22,33,22,11], 22) → 2intarray — 操作整数数组 › intarray 函数和操作符 index函数与运算符PG18index ( a ltree, b ltree ) → integer 返回b在a中第一次出现的位置,如果找不到则返回 -1。 index('0.1.2.3.5.4.5.6.8.5.6.8', '5.6') → 6ltree — 层次树状数据类型 › 操作符和函数 inet_client_addr函数与运算符本站词条返回当前客户端的 IP 地址;如果当前连接通过 Unix 域套接字建立,则返回NULL。 Returns the IP address of the current client, or NULL if the current connection is via a Unix-domain socket. inet_client_addr () → inet 系统信息函数和操作…函数 · 系统信息函数和操作符 inet_client_port函数与运算符本站词条返回当前客户端的IP端口号,如果当前连接是通过Unix 域套接字则返回NULL。 Returns the IP port number of the current client, or NULL if the current connection is via a Unix-domain socket. inet_client_port () → integer 系统信息函数…函数 · 系统信息函数和操作符 inet_merge函数与运算符本站词条计算包含两个给定网络的最小网络。 Computes the smallest network that includes both of the given networks. inet_merge ( inet, inet ) → cidr 网络地址函数和操作符函数 · 网络地址函数和操作符 inet_same_family函数与运算符本站词条测试地址是否属于同一IP族。 Tests whether the addresses belong to the same IP family. inet_same_family ( inet, inet ) → boolean 网络地址函数和操作符函数 · 网络地址函数和操作符 inet_server_addr函数与运算符本站词条返回服务器接受当前连接的IP地址,如果当前连接是通过Unix 域套接字则返回NULL。 Returns the IP address on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket. inet_se…函数 · 系统信息函数和操作符 inet_server_port函数与运算符本站词条返回服务器接受当前连接的IP端口号,如果当前连接是通过Unix 域套接字则返回NULL。 Returns the IP port number on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket. in…函数 · 系统信息函数和操作符 initcap函数与运算符本站词条将每个单词的第一个字母转换为大写(如果该字母是二合字母,且区域设置为ICU或builtin PG_UNICODE_FAST,则转换为标题大小写),其余字母转换为小写。 Converts the first letter of each word to upper case (or title case if the letter is a digraph and locale …函数 · 字符串函数和操作符 int函数与运算符PG18int ( number ) → integer 转换为 integer。 int(5.4 + 3.8) → 9pgbench › 注解 › 内置函数 intset函数与运算符PG18intset ( integer ) → integer[] 创建一个只含一个元素的数组。 intset(42) → {42}intarray — 操作整数数组 › intarray 函数和操作符 is_valid函数与运算符PG18is_valid ( isn ) → boolean 检查该值是否带有“校验位无效”标记。isn — 国际标准编号(ISBN、EAN、UPC 等)的数据类型 › 函数和操作符 isclosed函数与运算符本站词条路径是否封闭? Is path closed? isclosed ( path ) → boolean 几何函数和操作符函数 · 几何函数和操作符 isempty函数与运算符本站词条范围为空吗? Is the range empty? isempty ( anyrange ) → boolean isempty ( anymultirange ) → boolean 范围/多范围函数和操作符函数 · 范围/多范围函数和操作符 isfinite函数与运算符本站词条测试日期是否有限(不是正负无穷) Test for finite date (not +/-infinity) isfinite ( date ) → boolean isfinite ( timestamp ) → boolean isfinite ( interval ) → boolean 日期/时间函数和操作符函数 · 日期/时间函数和操作符 isn_weak函数与运算符PG18isn_weak ( boolean ) → boolean 设置弱输入模式,并返回新的设置值。保留此函数是为了向后兼容。推荐通过isn.weak配置参数来设置弱模式。isn — 国际标准编号(ISBN、EAN、UPC 等)的数据类型 › 函数和操作符 isopen函数与运算符本站词条路径是否开放? Is path open? isopen ( path ) → boolean 几何函数和操作符函数 · 几何函数和操作符 json函数与运算符本站词条将给定的text或bytea字符串表达式(采用 UTF8 编码)转换为 JSON 值。 Converts a given expression specified as text or bytea string (in UTF8 encoding) into a JSON value. json ( expression [FORMAT JSON [ENCODING UTF8]…函数 · JSON 函数和操作符 json_agg函数与运算符本站词条将所有输入值(包括空值)收集到一个JSON数组中。 Collects all the input values, including nulls, into a JSON array. json_agg ( anyelement ORDER BY input_sort_columns ) → json 聚合函数函数 · 聚合函数 json_agg_strict函数与运算符本站词条将所有非空输入值收集到一个JSON数组中,跳过空值。 Collects all the input values, skipping nulls, into a JSON array. json_agg_strict ( anyelement ) → json 聚合函数函数 · 聚合函数 json_array函数与运算符本站词条从一系列value_expression参数或query_expression的结果构造 JSON 数组;后者必须是返回单列的 SELECT 查询。 Constructs a JSON array from either a series of value_expression parameters or from the results of query_expression…函数 · JSON 函数和操作符 json_array_elements函数与运算符本站词条将顶级JSON数组展开为一组JSON值。 Expands the top-level JSON array into a set of JSON values. json_array_elements ( json ) → setof json JSON 函数和操作符函数 · JSON 函数和操作符 json_array_elements_text函数与运算符本站词条将顶级 JSON 数组展开为一组text值。 Expands the top-level JSON array into a set of text values. json_array_elements_text ( json ) → setof text JSON 函数和操作符函数 · JSON 函数和操作符 json_array_length函数与运算符本站词条返回顶级JSON数组中的元素数量。 Returns the number of elements in the top-level JSON array. json_array_length ( json ) → integer JSON 函数和操作符函数 · JSON 函数和操作符 json_arrayagg函数与运算符本站词条行为与json_array相同,只是它作为一个聚合函数,因此只接受一个 value_expression参数。 Behaves in the same way as json_array but as an aggregate function so it only takes one value_expression parameter. json_arrayagg ( [v…函数 · 聚合函数 json_build_array函数与运算符本站词条根据可变参数列表构建可能异构类型的JSON数组。 Builds a possibly-heterogeneously-typed JSON array out of a variadic argument list. json_build_array ( VARIADIC "any" ) → json JSON 函数和操作符函数 · JSON 函数和操作符 json_build_object函数与运算符本站词条根据可变参数列表构建一个JSON对象。 Builds a JSON object out of a variadic argument list. json_build_object ( VARIADIC "any" ) → json JSON 函数和操作符函数 · JSON 函数和操作符
更多结果

输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。

pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开