PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
sec_to_gcsec_to_gc ( float8 ) → float8 将地球表面两点间的普通直线(割线)距离转换为它们之间的大圆距离。earthdistance — 计算大圆距离 › 基于立方体的地球距离
sepgsql_getconsepgsql_getcon () → text 返回客户端域,也就是客户端当前的安全标签。sepgsql — 基于 SELinux 标签的强制访问控制(MAC)安全模块 › sepgsql 函数
sepgsql_mcstrans_insepgsql_mcstrans_in ( text ) → text 如果 mcstrans 守护进程正在运行,则把给定的限定格式 MLS/MCS 范围转换为原始格式。sepgsql — 基于 SELinux 标签的强制访问控制(MAC)安全模块 › sepgsql 函数
sepgsql_mcstrans_outsepgsql_mcstrans_out ( text ) → text 如果 mcstrans 守护进程正在运行,则把给定的原始 MLS/MCS 范围转换为限定格式。sepgsql — 基于 SELinux 标签的强制访问控制(MAC)安全模块 › sepgsql 函数
sepgsql_restoreconsepgsql_restorecon ( text ) → boolean 为当前数据库内的所有对象建立初始安全标签。参数可以是 NULL,也可以是用作系统默认值替代方案的 specfile 文件名。sepgsql — 基于 SELinux 标签的强制访问控制(MAC)安全模块 › sepgsql 函数
sepgsql_setconsepgsql_setcon ( text ) → boolean 如果安全策略允许,将当前会话的客户端域切换到新域。它也接受 NULL 输入,表示请求切换到客户端的原始域。sepgsql — 基于 SELinux 标签的强制访问控制(MAC)安全模块 › sepgsql 函数
session_user返回会话用户名。
Returns the session user's name.
session_user → name
系统信息函数和操作符函数 · 系统信息函数和操作符
set_bit设置二进制字符串中的编号为 n 的位为newvalue。
Sets n'th bit in binary string to newvalue.
set_bit ( bytes bytea, n bigint, newvalue integer ) → bytea
set_bit ( bits bit, n integer, newvalue integer ) → bit
二…函数 · 二进制串函数和操作符
set_byte将二进制字符串中编号为 n 的字节设置为 newvalue。
Sets n'th byte in binary string to newvalue.
set_byte ( bytes bytea, n integer, newvalue integer ) → bytea
二进制串函数和操作符函数 · 二进制串函数和操作符
set_config将参数setting_name设置为new_value,并返回该值。
Sets the parameter setting_name to new_value, and returns that value.
set_config ( setting_name text, new_value text, is_local boolean ) → text
系统管理函数函数 · 系统管理函数
set_limitset_limit ( real ) → real 设置%操作符当前使用的相似度阈值。该阈值必须介于 0 和 1 之间(默认值为 0.3)。返回传入的同一个值。(已废弃;请改用SET pg_trgm.similarity_threshold。)pg_trgm — 基于三字符组匹配的文本相似度支持 › 函数和操作符
set_masklen设置inet值的子网掩码长度。
Sets the netmask length for an inet value.
set_masklen ( inet, integer ) → inet
set_masklen ( cidr, integer ) → cidr
网络地址函数和操作符函数 · 网络地址函数和操作符
setseed为后续的random()和random_normal()调用设置种子;参数必须在-1.0和1.0之间,包括边界值
Sets the seed for subsequent random() and random_normal() calls; argument must be between -1.0 and 1.0, inclusive
setseed ( double pr…函数 · 数学函数和操作符
setval设置序列对象的当前值,并可选地设置其is_called标志。
Sets the sequence object's current value, and optionally its is_called flag.
setval ( regclass, bigint [, boolean] ) → bigint
序列操作函数函数 · 序列操作函数
setweight将指定的weight赋给vector的每个元素。
Assigns the specified weight to each element of the vector.
setweight ( vector tsvector, weight "char" ) → tsvector
setweight ( vector tsvector, weight "char", lexem…函数 · 文本检索函数和操作符
sha224计算二进制字符串的 SHA-224 hash。
Computes the SHA-224 hash of the binary string.
sha224 ( bytea ) → bytea
二进制串函数和操作符函数 · 二进制串函数和操作符
sha256计算二进制字符串的 SHA-256 hash。
Computes the SHA-256 hash of the binary string.
sha256 ( bytea ) → bytea
二进制串函数和操作符函数 · 二进制串函数和操作符
sha384计算二进制字符串的 SHA-384 hash。
Computes the SHA-384 hash of the binary string.
sha384 ( bytea ) → bytea
二进制串函数和操作符函数 · 二进制串函数和操作符
sha512计算二进制字符串的 SHA-512 hash。
Computes the SHA-512 hash of the binary string.
sha512 ( bytea ) → bytea
二进制串函数和操作符函数 · 二进制串函数和操作符
shobj_description返回共享数据库对象的注释,对象由其 OID 和所在系统目录的名称指定。
Returns the comment for a shared database object specified by its OID and the name of the containing system catalog.
shobj_description ( object oid, catal…函数 · 系统信息函数和操作符
show_limitshow_limit () → real 返回%操作符当前使用的相似度阈值。例如,它设置了两个词要被认为足够相似,以至于可视为彼此的拼写错误时所需的最小相似度。(已废弃;请改用SHOW pg_trgm.similarity_threshold。)pg_trgm — 基于三字符组匹配的文本相似度支持 › 函数和操作符
show_trgmshow_trgm ( text ) → text[] 返回由给定字符串中所有三字符组构成的数组。(实际应用中,除了调试之外很少有用。)pg_trgm — 基于三字符组匹配的文本相似度支持 › 函数和操作符
sign参数的符号(-1、0 或 +1)
Sign of the argument (-1, 0, or +1)
sign ( numeric ) → numeric
sign ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
similaritysimilarity ( text, text ) → real 返回一个数值,表示两个参数的相似程度。结果范围为 0 到 1:0 表示两个字符串完全不相似,1 表示两个字符串完全相同。pg_trgm — 基于三字符组匹配的文本相似度支持 › 函数和操作符
sin正弦,参数为弧度
Sine, argument in radians
sin ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
sind正弦,参数为度数
Sine, argument in degrees
sind ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
sinh双曲正弦
Hyperbolic sine
sinh ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
skeysskeys ( hstore ) → setof text 将hstore的键提取为集合。 skeys('a=>1,b=>2') → a bhstore — hstore 键/值数据类型 › hstore 操作符和函数
sliceslice ( hstore, text[] ) → hstore 提取hstore的一个子集,只包含指定的键。 slice('a=>1,b=>2,c=>3'::hstore, ARRAY['b','c','x']) → "b"=>"2", "c"=>"3"hstore — hstore 键/值数据类型 › hstore 操作符和函数
slope计算通过两点所画直线的斜率。
Computes slope of a line drawn through the two points.
slope ( point, point ) → double precision
几何函数和操作符函数 · 几何函数和操作符
sortsort ( integer[], dir text ) → integer[] 按升序或降序对数组排序。dir必须为 asc或desc。 sort('{1,3,2}'::integer[], 'desc') → {3,2,1}intarray — 操作整数数组 › intarray 函数和操作符
sort_ascsort ( integer[] ) → integer[] sort_asc ( integer[] ) → integer[] 按升序排序。 sort(array[11,77,44]) → {11,44,77}intarray — 操作整数数组 › intarray 函数和操作符
sort_descsort_desc ( integer[] ) → integer[] 按降序排序。 sort_desc(array[11,77,44]) → {77,44,11}intarray — 操作整数数组 › intarray 函数和操作符
split_part在出现delimiter时拆分string,并返回第n个字段(从一开始计数);如果n为负数,则返回倒数第 |n| 个字段。
Splits string at occurrences of delimiter and returns the n'th field (counting from one), or when n is negative, returns the |n|…函数 · 字符串函数和操作符
sqrt平方根
Square root
sqrt ( numeric ) → numeric
sqrt ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
starts_with如果 string 以 prefix开始就返回真。
Returns true if string starts with prefix.
starts_with ( string text, prefix text ) → boolean
字符串函数和操作符函数 · 字符串函数和操作符
statement_timestamp当前日期和时间(当前语句开始时);参见第 9.9.5 节
Current date and time (start of current statement); see Section 9.9.5
statement_timestamp ( ) → timestamp with time zone
statement_timestamp()
日期/时间函数和操作符函数 · 日期/时间函数和操作符
stddev这是stddev_samp的一个历史别名。
This is a historical alias for stddev_samp.
stddev ( numeric_type ) → double precision for real or double precision, otherwise numeric
聚合函数函数 · 聚合函数
stddev_pop计算输入值的总体标准差。
Computes the population standard deviation of the input values.
stddev_pop ( numeric_type ) → double precision for real or double precision, otherwise numeric
聚合函数函数 · 聚合函数
stddev_samp计算输入值的样本标准差。
Computes the sample standard deviation of the input values.
stddev_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric
聚合函数函数 · 聚合函数
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开