pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。
9.0 是本数据集的收录基线,不代表该函数首次于 9.0 引入。本页列出 9.0 当时已有的全部 334 个函数。
| 函数 | 签名 | 主签名 | 版本变动 | 最近变更 |
|---|---|---|---|---|
abs基线 |
1 | abs ( numeric_type ) → numeric_type |
— | |
| 绝对值 | 现存 | |||
acos基线 |
1 | acos ( double precision ) → double precision |
— | |
| 反余弦,结果为弧度 | 现存 | |||
asin基线 |
1 | asin ( double precision ) → double precision |
— | |
| 反正弦,结果为弧度 | 现存 | |||
atan基线 |
1 | atan ( double precision ) → double precision |
— | |
| 反正切,结果为弧度 | 现存 | |||
atan2基线 |
1 | atan2 ( y double precision, x double precision ) → double precision |
— | |
| y/x的反正切,结果为弧度 | 现存 | |||
cbrt基线 |
1 | cbrt ( double precision ) → double precision |
— | |
| 立方根 | 现存 | |||
ceil基线 |
2 | ceil ( numeric ) → numeric |
— | |
| 大于或等于参数的最接近的整数 | 现存 | |||
ceiling基线 |
2 | ceiling ( numeric ) → numeric |
— | |
| 大于或等于参数的最接近的整数(与 ceil 相同) | 现存 | |||
cos基线 |
1 | cos ( double precision ) → double precision |
— | |
| 余弦,参数为弧度 | 现存 | |||
cot基线 |
1 | cot ( double precision ) → double precision |
— | |
| 余切,参数为弧度 | 现存 | |||
degrees基线 |
1 | degrees ( double precision ) → double precision |
— | |
| 将弧度转换为角度 | 现存 | |||
div基线 |
1 | div ( y numeric, x numeric ) → numeric |
— | |
| y/x 的整数商(向零截断) | 现存 | |||
exp基线 |
2 | exp ( numeric ) → numeric |
— | |
| 指数函数(e的给定次幂) | 现存 | |||
floor基线 |
2 | floor ( numeric ) → numeric |
— | |
| 小于或等于参数的最接近整数 | 现存 | |||
ln基线 |
2 | ln ( numeric ) → numeric |
— | |
| 自然对数 | 现存 | |||
log基线 |
3 | log ( numeric ) → numeric |
— | |
| 以10为底的对数 | 现存 | |||
mod基线 |
1 | mod ( y numeric_type, x numeric_type ) → numeric_type |
— | |
| y/x的余数;适用于smallint、integer、bigint 和 numeric | 现存 | |||
pi基线 |
1 | pi ( ) → double precision |
— | |
| π的近似值 | 现存 | |||
power基线 |
2 | power ( a numeric, b numeric ) → numeric |
— | |
| a的b次幂 | 现存 | |||
radians基线 |
1 | radians ( double precision ) → double precision |
— | |
| 将角度转换为弧度 | 现存 | |||
random基线 |
7 | random ( ) → double precision |
192 次 | |
| 返回范围 0.0 <= x < 1.0 内的随机值 | 现存 | |||
round基线 |
3 | round ( numeric ) → numeric |
— | |
| 舍入到最接近的整数。 | 现存 | |||
setseed基线 |
1 | setseed ( double precision ) → void |
— | |
| 为后续的random()和random_normal()调用设置种子;参数必须在-1.0和1.0之间,包括边界值 | 现存 | |||
sign基线 |
2 | sign ( numeric ) → numeric |
— | |
| 参数的符号(-1、0 或 +1) | 现存 | |||
sin基线 |
1 | sin ( double precision ) → double precision |
— | |
| 正弦,参数为弧度 | 现存 | |||
sqrt基线 |
2 | sqrt ( numeric ) → numeric |
— | |
| 平方根 | 现存 | |||
tan基线 |
1 | tan ( double precision ) → double precision |
— | |
| 正切,参数为弧度 | 现存 | |||
trunc基线 |
5 | trunc ( numeric ) → numeric |
101 次 | |
| 向零截断为整数 | 现存 | |||
width_bucket基线 |
3 | width_bucket ( operand numeric, low numeric, high numeric, count integer ) → integer |
142 次 | |
| 返回直方图中包含 operand 的桶编号。 | 现存 | |||
ascii基线 |
1 | ascii ( text ) → integer |
— | |
| 返回参数的第一个字符的数字代码。 | 现存 | |||
bit_length基线 |
3 | bit_length ( text ) → integer |
— | |
| 返回字符串中的位数(8倍于octet_length)。 | 现存 | |||
btrim基线 |
2 | btrim ( string text [, characters text] ) → text |
— | |
| 从string的开头和结尾移除仅由characters中字符(默认为空格)组成的最长字符串。 | 现存 | |||
char_length基线 |
1 | char_length ( text ) → integer |
— | |
| 返回字符串中的字符数。 | 现存 | |||
character_length基线 |
1 | character_length ( text ) → integer |
— | |
| 返回字符串中的字符数。 | 现存 | |||
chr基线 |
1 | chr ( integer ) → text |
— | |
| 返回给定代码的字符。 | 现存 | |||
initcap基线 |
1 | initcap ( text ) → text |
— | |
| 将每个单词的第一个字母转换为大写(如果该字母是二合字母,且区域设置为ICU或builtin PG_UNICODE_FAST,则转换为标题大小写),其余字母转换为小写。 | 现存 | |||
length基线 |
6 | length ( text ) → integer |
9.11 次 | |
| 返回字符串中的字符数。 | 现存 | |||
lower基线 |
3 | lower ( text ) → text |
142 次 | |
| 根据数据库的区域设置规则,将字符串转换为全部小写。 | 现存 | |||
lpad基线 |
1 | lpad ( string text, length integer [, fill text] ) → text |
— | |
| 在string前面添加字符fill(默认为空格),将其填充到长度length。 | 现存 | |||
ltrim基线 |
2 | ltrim ( string text [, characters text] ) → text |
141 次 | |
| 从string的开头移除仅由characters中字符(默认为空格)组成的最长字符串。 | 现存 | |||
md5基线 |
2 | md5 ( text ) → text |
— | |
| 计算参数的 MD5 hash,结果以十六进制形式写入。 | 现存 | |||
octet_length基线 |
4 | octet_length ( text ) → integer |
— | |
| 返回字符串的字节数。 | 现存 | |||
overlay基线 |
3 | overlay ( string text PLACING newsubstring text FROM start integer [FOR count integer] ) → text |
— | |
| 用newsubstring替换string中从第start个字符开始、长度为count个字符的子字符串。 | 现存 | |||
pg_client_encoding基线 |
1 | pg_client_encoding ( ) → name |
— | |
| 返回当前客户端编码名称。 | 现存 | |||
position基线 |
3 | position ( substring text IN string text ) → integer |
— | |
| 返回substring在string中首次出现的位置;如果不存在则返回零。 | 现存 | |||
quote_ident基线 |
1 | quote_ident ( text ) → text |
— | |
| 为给定字符串添加适当的引号并返回,使其可用作SQL语句字符串中的标识符。 | 现存 | |||
quote_literal基线 |
2 | quote_literal ( text ) → text |
— | |
| 为给定字符串添加适当的引号并返回,使其可用作SQL语句字符串中的字符串字面量。 | 现存 | |||
quote_nullable基线 |
2 | quote_nullable ( text ) → text |
— | |
| 为给定字符串添加适当的引号并返回,使其可用作SQL语句字符串中的字符串字面量;如果参数为 null,则返回NULL。 | 现存 | |||
regexp_matches基线 |
2 | regexp_matches ( string text, pattern text [, flags text] ) → setof text[] |
191 次 | |
| 返回 POSIX 正则表达式pattern与string的第一次匹配中的子字符串;如果使用g标志,则返回所有匹配中的子字符串。 | 现存 | |||
regexp_replace基线 |
4 | regexp_replace ( string text, pattern text, replacement text [, flags text] ) → text |
193 次 | |
| 替换第一个与 POSIX 正则表达式pattern匹配的子字符串,如果使用了g标志,则替换所有这样的匹配;参见第 9.7.3.1.7 节。 | 现存 | |||
regexp_split_to_array基线 |
2 | regexp_split_to_array ( string text, pattern text [, flags text] ) → text[] |
191 次 | |
| 使用POSIX正则表达式作为分隔符拆分string,生成一个结果的数组;参见第 9.7.3.1.9 节。 | 现存 | |||
regexp_split_to_table基线 |
2 | regexp_split_to_table ( string text, pattern text [, flags text] ) → setof text |
191 次 | |
| 使用POSIX正则表达式作为分隔符拆分string,生成一组结果;参见第 9.7.3.1.8 节。 | 现存 | |||
repeat基线 |
1 | repeat ( string text, number integer ) → text |
— | |
| 按number指定的次数重复string。 | 现存 | |||
replace基线 |
1 | replace ( string text, from text, to text ) → text |
— | |
| 将string中所有出现的子字符串from替换为子字符串to。 | 现存 | |||
rpad基线 |
1 | rpad ( string text, length integer [, fill text] ) → text |
— | |
| 在string后面追加字符fill(默认为空格),将其填充到长度length。 | 现存 | |||
rtrim基线 |
2 | rtrim ( string text [, characters text] ) → text |
141 次 | |
| 从string的结尾移除仅由characters中字符(默认为空格)组成的最长字符串。 | 现存 | |||
split_part基线 |
1 | split_part ( string text, delimiter text, n integer ) → text |
— | |
| 在出现delimiter时拆分string,并返回第n个字段(从一开始计数);如果n为负数,则返回倒数第 |n| 个字段。 | 现存 | |||
string_to_array基线 |
1 | string_to_array ( string text, delimiter text [, null_string text] ) → text[] |
9.11 次 | |
| 将string按delimiter分割,并将结果字段形成text数组。 | 现存 | |||
strpos基线 |
1 | strpos ( string text, substring text ) → integer |
— | |
| 返回substring在string中首次出现的位置;如果不存在则返回零。 | 现存 | |||
substr基线 |
2 | substr ( string text, start integer [, count integer] ) → text |
— | |
| 提取string中从第start个字符开始的子字符串;若指定了长度,则提取count个字符。 | 现存 | |||
substring基线 |
11 | substring ( string text [FROM start integer] [FOR count integer] ) → text |
193 次 | |
| 提取string的子字符串:若指定了起始位置,则从第start个字符开始;若指定了长度,则在提取count个字符后停止。 | 现存 | |||
to_ascii基线 |
3 | to_ascii ( string text ) → text |
— | |
| 将string从其他编码转换为ASCII,源编码可以用名称或编号指定。 | 现存 | |||
to_hex基线 |
2 | to_hex ( integer ) → text |
— | |
| 将数字转换为等价的二进制补码的十六进制表示。 | 现存 | |||
translate基线 |
1 | translate ( string text, from text, to text ) → text |
— | |
| 将string中与from集合中匹配的每个字符替换为to集合中相应的字符。 | 现存 | |||
trim基线 |
4 | trim ( [LEADING | TRAILING | BOTH] [characters text] FROM string text ) → text |
142 次 | |
| 从string的开始、末端或两端(默认为BOTH)移除仅包含characters(默认为空格)字符的最长字符串。 | 现存 | |||
upper基线 |
3 | upper ( text ) → text |
142 次 | |
| 根据数据库的区域设置规则,将字符串转换为全部大写。 | 现存 | |||
convert基线 |
1 | convert ( bytes bytea, src_encoding name, dest_encoding name ) → bytea |
— | |
| 将表示编码src_encoding的文本的二进制字符串转换为编码dest_encoding的二进制字符串(适用的转换请参阅第 23.3.4 节)。 | 现存 | |||
convert_from基线 |
1 | convert_from ( bytes bytea, src_encoding name ) → text |
— | |
| 将表示编码src_encoding的文本的二进制字符串转换为数据库编码中的text。 | 现存 | |||
convert_to基线 |
1 | convert_to ( string text, dest_encoding name ) → bytea |
— | |
| 将text字符串(数据库编码)转换为编码dest_encoding中编码的二进制字符串。 | 现存 | |||
decode基线 |
1 | decode ( string text, format text ) → bytea |
— | |
| 从文本表示中解码二进制数据;支持的format值与encode相同。 | 现存 | |||
encode基线 |
1 | encode ( bytes bytea, format text ) → text |
— | |
| 将二进制数据编码成文本表示;支持的format值为:base32hex, base64, base64url, escape, hex。 | 现存 | |||
get_bit基线 |
2 | get_bit ( bytes bytea, n bigint ) → integer |
— | |
| 从二进制字符串中提取编号为 n 的位。 | 现存 | |||
get_byte基线 |
1 | get_byte ( bytes bytea, n integer ) → integer |
— | |
| 从二进制字符串中提取编号为 n 的字节。 | 现存 | |||
set_bit基线 |
2 | set_bit ( bytes bytea, n bigint, newvalue integer ) → bytea |
— | |
| 设置二进制字符串中的编号为 n 的位为newvalue。 | 现存 | |||
set_byte基线 |
1 | set_byte ( bytes bytea, n integer, newvalue integer ) → bytea |
— | |
| 将二进制字符串中编号为 n 的字节设置为 newvalue。 | 现存 | |||
to_char基线 |
4 | to_char ( timestamp, text ) → text |
— | |
| 根据给定的格式将时间戳转换为字符串。 | 现存 | |||
to_date基线 |
1 | to_date ( text, text ) → date |
— | |
| 根据给定的格式将字符串转换为日期。 | 现存 | |||
to_number基线 |
1 | to_number ( text, text ) → numeric |
— | |
| 根据给定的格式将字符串转换为数值。 | 现存 | |||
to_timestamp基线 |
2 | to_timestamp ( text, text ) → timestamp with time zone |
— | |
| 根据给定的格式将字符串转换为时间戳。 | 现存 | |||
age基线 |
3 | age ( timestamp, timestamp ) → interval |
— | |
| 将两个参数相减,生成一个使用年和月而不是只用日的“符号化”结果 | 现存 | |||
clock_timestamp基线 |
2 | clock_timestamp ( ) → timestamp with time zone |
— | |
| 当前日期和时间(在语句执行期间变化);参见第 9.9.5 节 | 现存 | |||
current_date基线 |
1 | current_date → date |
— | |
| 当前日期;参见第 9.9.5 节 | 现存 | |||
current_time基线 |
3 | current_time → time with time zone |
— | |
| 一天中的当前时刻;参见第 9.9.5 节 | 现存 | |||
current_timestamp基线 |
3 | current_timestamp → timestamp with time zone |
— | |
| 当前日期和时间(当前事务开始时);参见第 9.9.5 节 | 现存 | |||
date_part基线 |
3 | date_part ( text, timestamp ) → double precision |
— | |
| 获取时间戳子字段(等同于 extract);参见第 9.9.1 节 | 现存 | |||
date_trunc基线 |
4 | date_trunc ( text, timestamp ) → timestamp |
122 次 | |
| 截断到指定的精度;参见第 9.9.2 节 | 现存 | |||
extract基线 |
3 | extract ( field FROM timestamp ) → numeric |
192 次 | |
| 获取时间戳子字段;参见第 9.9.1 节 | 现存 | |||
isfinite基线 |
3 | isfinite ( date ) → boolean |
— | |
| 测试日期是否有限(不是正负无穷) | 现存 | |||
justify_days基线 |
1 | justify_days ( interval ) → interval |
— | |
| 调整间隔,将30天的时间段转换为月份 | 现存 | |||
justify_hours基线 |
1 | justify_hours ( interval ) → interval |
— | |
| 调整间隔,将24小时时间段转换为天数 | 现存 | |||
justify_interval基线 |
1 | justify_interval ( interval ) → interval |
— | |
| 使用 justify_days 和 justify_hours调整时间间隔,并额外调整符号 | 现存 | |||
localtime基线 |
3 | localtime → time |
— | |
| 一天中的当前时刻;参见第 9.9.5 节 | 现存 | |||
localtimestamp基线 |
3 | localtimestamp → timestamp |
— | |
| 当前日期和时间(当前事务开始时);参见第 9.9.5 节 | 现存 | |||
now基线 |
2 | now ( ) → timestamp with time zone |
— | |
| 当前日期和时间(当前事务开始时);参见第 9.9.5 节 | 现存 | |||
pg_sleep基线 |
1 | pg_sleep ( double precision ) |
— | |
| pg_sleep使当前会话的进程休眠,直到经过指定的秒数。 | 现存 | |||
statement_timestamp基线 |
2 | statement_timestamp ( ) → timestamp with time zone |
— | |
| 当前日期和时间(当前语句开始时);参见第 9.9.5 节 | 现存 | |||
timeofday基线 |
2 | timeofday ( ) → text |
— | |
| 当前的日期和时间(类似 clock_timestamp,但是采用 text 字符串);参见第 9.9.5 节 | 现存 | |||
transaction_timestamp基线 |
2 | transaction_timestamp ( ) → timestamp with time zone |
— | |
| 当前日期和时间(当前事务开始时);参见第 9.9.5 节 | 现存 | |||
enum_first基线 |
1 | enum_first ( anyenum ) → anyenum |
— | |
| 返回输入枚举类型的第一个值。 | 现存 | |||
enum_last基线 |
1 | enum_last ( anyenum ) → anyenum |
— | |
| 返回输入枚举类型的最后一个值。 | 现存 | |||
enum_range基线 |
2 | enum_range ( anyenum ) → anyarray |
— | |
| 将输入枚举类型的所有值作为一个有序的数组返回。 | 现存 | |||
area基线 |
1 | area ( geometric_type ) → double precision |
— | |
| 计算面积。 | 现存 | |||
box基线 |
4 | box ( circle ) → box |
9.51 次 | |
| 计算内接于圆的矩形框。 | 现存 | |||
center基线 |
1 | center ( geometric_type ) → point |
— | |
| 计算中心点。 | 现存 | |||
circle基线 |
3 | circle ( box ) → circle |
— | |
| 计算包围矩形框的最小圆。 | 现存 | |||
diameter基线 |
1 | diameter ( circle ) → double precision |
— | |
| 计算圆的直径。 | 现存 | |||
height基线 |
1 | height ( box ) → double precision |
— | |
| 计算框的垂直尺寸。 | 现存 | |||
isclosed基线 |
1 | isclosed ( path ) → boolean |
— | |
| 路径是否封闭? | 现存 | |||
isopen基线 |
1 | isopen ( path ) → boolean |
— | |
| 路径是否开放? | 现存 | |||
lseg基线 |
2 | lseg ( box ) → lseg |
— | |
| 提取框的对角线作为线段。 | 现存 | |||
npoints基线 |
1 | npoints ( geometric_type ) → integer |
— | |
| 返回点的数量。 | 现存 | |||
path基线 |
1 | path ( polygon ) → path |
— | |
| 将多边形转换为具有相同点列表的封闭路径。 | 现存 | |||
pclose基线 |
1 | pclose ( path ) → path |
— | |
| 将路径转换为封闭形式。 | 现存 | |||
point基线 |
5 | point ( double precision, double precision ) → point |
— | |
| 从它的坐标构造点。 | 现存 | |||
polygon基线 |
4 | polygon ( box ) → polygon |
— | |
| 将框转换为4点多边形。 | 现存 | |||
popen基线 |
1 | popen ( path ) → path |
— | |
| 将路径转换为开放形式。 | 现存 | |||
radius基线 |
1 | radius ( circle ) → double precision |
— | |
| 计算圆的半径。 | 现存 | |||
width基线 |
1 | width ( box ) → double precision |
— | |
| 计算框的水平大小。 | 现存 | |||
abbrev基线 |
2 | abbrev ( inet ) → text |
— | |
| 创建文本形式的缩写显示格式。 | 现存 | |||
broadcast基线 |
1 | broadcast ( inet ) → inet |
— | |
| 为地址的网络计算广播地址。 | 现存 | |||
family基线 |
1 | family ( inet ) → integer |
— | |
| 返回地址的地址族:4 对应 IPv4,6 对应 IPv6。 | 现存 | |||
host基线 |
1 | host ( inet ) → text |
— | |
| 返回IP地址文本,忽略子网掩码。 | 现存 | |||
hostmask基线 |
1 | hostmask ( inet ) → inet |
— | |
| 为地址的网络计算主机掩码。 | 现存 | |||
masklen基线 |
1 | masklen ( inet ) → integer |
— | |
| 返回子网掩码长度,以位为单位。 | 现存 | |||
netmask基线 |
1 | netmask ( inet ) → inet |
— | |
| 为地址的网络计算网络掩码。 | 现存 | |||
network基线 |
1 | network ( inet ) → cidr |
— | |
| 返回地址的网络部分,将子网掩码右边的部分归零。 | 现存 | |||
set_masklen基线 |
2 | set_masklen ( inet, integer ) → inet |
— | |
| 设置inet值的子网掩码长度。 | 现存 | |||
text基线 |
1 | text ( inet ) → text |
— | |
| 以文本形式返回未缩写的IP地址和子网掩码长度。 | 现存 | |||
get_current_ts_config基线 |
1 | get_current_ts_config ( ) → regconfig |
— | |
| 返回当前默认文本检索配置的 OID(由default_text_search_config设置)。 | 现存 | |||
numnode基线 |
1 | numnode ( tsquery ) → integer |
— | |
| 返回tsquery中词位和操作符的数目。 | 现存 | |||
plainto_tsquery基线 |
1 | plainto_tsquery ( [config regconfig, ] query text ) → tsquery |
— | |
| 将文本转换为tsquery,根据指定的或默认配置对单词进行正规化。 | 现存 | |||
querytree基线 |
1 | querytree ( tsquery ) → text |
— | |
| 生成tsquery中可索引部分的表示。 | 现存 | |||
setweight基线 |
2 | setweight ( vector tsvector, weight "char" ) → tsvector |
9.61 次 | |
| 将指定的weight赋给vector的每个元素。 | 现存 | |||
strip基线 |
1 | strip ( tsvector ) → tsvector |
— | |
| 从tsvector中移除位置和权重。 | 现存 | |||
to_tsquery基线 |
1 | to_tsquery ( [config regconfig, ] query text ) → tsquery |
— | |
| 将文本转换为tsquery,根据指定的或默认配置对单词进行正规化。 | 现存 | |||
to_tsvector基线 |
3 | to_tsvector ( [config regconfig, ] document text ) → tsvector |
101 次 | |
| 将文本转换为tsvector,根据指定的或默认配置对单词进行正规化。 | 现存 | |||
ts_debug基线 |
1 | ts_debug ( [config regconfig, ] document text ) → setof record ( alias text, description text, token text, dictionaries regdictionary[], dictionary regdictionary, lexemes text[] ) |
— | |
| 根据指定的或默认的文本检索配置从document中提取和正规化词元,并返回关于每个词元是如何处理的信息。 | 现存 | |||
ts_headline基线 |
3 | ts_headline ( [config regconfig, ] document text, query tsquery [, options text] ) → text |
101 次 | |
| 以缩略形式显示query在document中的匹配项;后者必须是原始文本,不能是tsvector。 | 现存 | |||
ts_lexize基线 |
1 | ts_lexize ( dict regdictionary, token text ) → text[] |
— | |
| 如果词典识别输入词元,则返回由替换词位组成的数组;如果词典识别该词元,但它是停用词,则返回空数组;如果词典无法识别该词元,则返回NULL。 | 现存 | |||
ts_parse基线 |
2 | ts_parse ( parser_name text, document text ) → setof record ( tokid integer, token text ) |
— | |
| 使用指定名称的解析器从document中提取词元。 | 现存 | |||
ts_rank基线 |
1 | ts_rank ( [weights real[], ] vector tsvector, query tsquery [, normalization integer] ) → real |
— | |
| 计算一个分数,显示vector与query的匹配程度。 | 现存 | |||
ts_rank_cd基线 |
1 | ts_rank_cd ( [weights real[], ] vector tsvector, query tsquery [, normalization integer] ) → real |
— | |
| 使用覆盖密度算法计算一个分数,显示vector与query的匹配程度。 | 现存 | |||
ts_rewrite基线 |
2 | ts_rewrite ( query tsquery, target tsquery, substitute tsquery ) → tsquery |
— | |
| 在query中使用 substitute替换出现的target。 | 现存 | |||
ts_stat基线 |
1 | ts_stat ( sqlquery text [, weights text] ) → setof record ( word text, ndoc integer, nentry integer ) |
— | |
| 执行sqlquery,该查询必须返回单个tsvector列,并返回数据中每个不同词位的统计信息。 | 现存 | |||
ts_token_type基线 |
2 | ts_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text ) |
— | |
| 返回一个表,该表描述指定名称的解析器可以识别的每种类型的词元。 | 现存 | |||
unnest基线 |
4 | unnest ( tsvector ) → setof record ( lexeme text, positions smallint[], weights text ) |
143 次 | |
| 将tsvector展开为一组行,每行对应一个词位。 | 现存 | |||
cursor_to_xml基线 |
1 | cursor_to_xml ( cursor refcursor, count integer, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| table_to_xml映射由参数table传递的命名表的内容。 | 现存 | |||
cursor_to_xmlschema基线 |
1 | cursor_to_xmlschema ( cursor refcursor, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 必须传入相同的参数,才能得到彼此匹配的 XML 数据映射和 XML 模式文档。 | 现存 | |||
database_to_xml基线 |
1 | database_to_xml ( nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 这些函数会忽略当前用户不可读的表。 | 现存 | |||
database_to_xml_and_xmlschema基线 |
1 | database_to_xml_and_xmlschema ( nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 这些函数会忽略当前用户不可读的表。 | 现存 | |||
database_to_xmlschema基线 |
1 | database_to_xmlschema ( nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 这些函数会忽略当前用户不可读的表。 | 现存 | |||
query_to_xml基线 |
1 | query_to_xml ( query text, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| table_to_xml映射由参数table传递的命名表的内容。 | 现存 | |||
query_to_xml_and_xmlschema基线 |
1 | query_to_xml_and_xmlschema ( query text, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 下面的函数产生 XML 数据映射和对应的 XML 模式,并把产生的结果链接在一起放在一个文档(或森林)中。 | 现存 | |||
query_to_xmlschema基线 |
1 | query_to_xmlschema ( query text, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 必须传入相同的参数,才能得到彼此匹配的 XML 数据映射和 XML 模式文档。 | 现存 | |||
schema_to_xml基线 |
1 | schema_to_xml ( schema name, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 这些函数会忽略当前用户不可读的表。 | 现存 | |||
schema_to_xml_and_xmlschema基线 |
1 | schema_to_xml_and_xmlschema ( schema name, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 这些函数会忽略当前用户不可读的表。 | 现存 | |||
schema_to_xmlschema基线 |
1 | schema_to_xmlschema ( schema name, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 这些函数会忽略当前用户不可读的表。 | 现存 | |||
table_to_xml基线 |
1 | table_to_xml ( table regclass, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| table_to_xml映射由参数table传递的命名表的内容。 | 现存 | |||
table_to_xml_and_xmlschema基线 |
1 | table_to_xml_and_xmlschema ( table regclass, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 下面的函数产生 XML 数据映射和对应的 XML 模式,并把产生的结果链接在一起放在一个文档(或森林)中。 | 现存 | |||
table_to_xmlschema基线 |
1 | table_to_xmlschema ( table regclass, nulls boolean, tableforest boolean, targetns text ) → xml |
— | |
| 必须传入相同的参数,才能得到彼此匹配的 XML 数据映射和 XML 模式文档。 | 现存 | |||
xmlagg基线 |
2 | xmlagg ( xml ) → xml |
171 次 | |
| 和这里描述的其他函数不同,函数xmlagg是一个聚合函数。 | 现存 | |||
xmlcomment基线 |
1 | xmlcomment ( text ) → xml |
— | |
| 函数xmlcomment创建了一个 XML 值,它包含一个使用指定文本作为内容的 XML 注释。 | 现存 | |||
xmlconcat基线 |
1 | xmlconcat ( xml [, ...] ) → xml |
— | |
| 函数xmlconcat将由各个独立 XML 值组成的列表串接成一个单独的值,这个值包含一个 XML 内容片段。 | 现存 | |||
xmlelement基线 |
1 | xmlelement ( NAME name [, XMLATTRIBUTES ( attvalue [AS attname] [, ...] ) ] [, content [, ...]] ) → xml |
— | |
| 表达式xmlelement使用给定名称、属性和内容产生一个 XML 元素。 | 现存 | |||
xmlforest基线 |
1 | xmlforest ( content [AS name] [, ...] ) → xml |
— | |
| 表达式xmlforest使用给定名称和内容产生由元素构成的 XML 森林(序列)。 | 现存 | |||
xmlpi基线 |
1 | xmlpi ( NAME name [, content] ) → xml |
— | |
| 表达式xmlpi创建一个 XML 处理指令。 | 现存 | |||
xmlroot基线 |
1 | xmlroot ( xml, VERSION {text|NO VALUE} [, STANDALONE {YES|NO|NO VALUE} ] ) → xml |
— | |
| 表达式xmlroot修改一个 XML 值的根节点的属性。 | 现存 | |||
xpath基线 |
1 | xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[] |
9.11 次 | |
| 函数xpath根据 XML 值xml计算 XPath 1.0 表达式xpath(以文本形式给出)。 | 现存 | |||
currval基线 |
1 | currval ( regclass ) → bigint |
— | |
| 返回当前会话中最近一次针对该序列调用nextval所获得的值。 | 现存 | |||
lastval基线 |
1 | lastval () → bigint |
— | |
| 返回nextval在当前会话中最近返回的值。 | 现存 | |||
nextval基线 |
1 | nextval ( regclass ) → bigint |
— | |
| 将序列对象推进到下一个值并返回该值。 | 现存 | |||
setval基线 |
1 | setval ( regclass, bigint [, boolean] ) → bigint |
— | |
| 设置序列对象的当前值,并可选地设置其is_called标志。 | 现存 | |||
COALESCE基线 |
1 | COALESCE(value [, ...]) |
— | |
| COALESCE函数返回参数中第一个不为 null 的值。 | 现存 | |||
GREATEST基线 |
1 | GREATEST(value [, ...]) |
— | |
| GREATEST和LEAST函数从由任意数量的表达式组成的列表中选取最大值或最小值。 | 现存 | |||
LEAST基线 |
1 | LEAST(value [, ...]) |
— | |
| GREATEST和LEAST函数从由任意数量的表达式组成的列表中选取最大值或最小值。 | 现存 | |||
NULLIF基线 |
1 | NULLIF(value1, value2) |
— | |
| 当value1和value2相等时,NULLIF返回 null。 | 现存 | |||
array_append基线 |
1 | array_append ( anycompatiblearray, anycompatible ) → anycompatiblearray |
141 次 | |
| 向一个数组的末端追加一个元素(等同于 anycompatiblearray || anycompatible 操作符)。 | 现存 | |||
array_cat基线 |
1 | array_cat ( anycompatiblearray, anycompatiblearray ) → anycompatiblearray |
141 次 | |
| 连接两个数组(等同于 anycompatiblearray || anycompatiblearray 操作符)。 | 现存 | |||
array_dims基线 |
1 | array_dims ( anyarray ) → text |
— | |
| 返回数组维度的文本表示形式。 | 现存 | |||
array_fill基线 |
1 | array_fill ( anyelement, integer[] [, integer[]] ) → anyarray |
9.31 次 | |
| 返回用给定值的副本填充的数组,各维的长度由第二个参数指定。 | 现存 | |||
array_length基线 |
1 | array_length ( anyarray, integer ) → integer |
— | |
| 返回请求的数组维度的长度。 | 现存 | |||
array_lower基线 |
1 | array_lower ( anyarray, integer ) → integer |
— | |
| 返回请求的数组维度的下界。 | 现存 | |||
array_ndims基线 |
1 | array_ndims ( anyarray ) → integer |
— | |
| 返回数组的维度数。 | 现存 | |||
array_prepend基线 |
1 | array_prepend ( anycompatible, anycompatiblearray ) → anycompatiblearray |
141 次 | |
| 在数组的开头添加一个元素(等同于anycompatible || anycompatiblearray操作符)。 | 现存 | |||
array_to_string基线 |
1 | array_to_string ( array anyarray, delimiter text [, null_string text] ) → text |
9.11 次 | |
| 将每个数组元素转换为其文本表示,并将它们用delimiter字符串分隔连接起来。 | 现存 | |||
array_upper基线 |
1 | array_upper ( anyarray, integer ) → integer |
— | |
| 返回请求的数组维度的上界。 | 现存 | |||
array_agg基线 |
2 | array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarray |
172 次 | |
| 将所有输入值,包括空值,收集到一个数组中。 | 现存 | |||
avg基线 |
7 | avg ( smallint ) → numeric |
— | |
| 计算所有非空输入值的平均值(算术平均值)。 | 现存 | |||
bit_and基线 |
4 | bit_and ( smallint ) → smallint |
— | |
| 计算所有非空输入值的按位与。 | 现存 | |||
bit_or基线 |
4 | bit_or ( smallint ) → smallint |
— | |
| 计算所有非空输入值的按位或。 | 现存 | |||
bool_and基线 |
1 | bool_and ( boolean ) → boolean |
— | |
| 如果全部非空输入值都为真则返回真,否则返回假。 | 现存 | |||
bool_or基线 |
1 | bool_or ( boolean ) → boolean |
— | |
| 如果任何非空输入值为真则返回真,否则返回假。 | 现存 | |||
corr基线 |
1 | corr ( Y double precision, X double precision ) → double precision |
— | |
| 计算相关系数。 | 现存 | |||
count基线 |
2 | count ( * ) → bigint |
— | |
| 计算输入行的数量。 | 现存 | |||
covar_pop基线 |
1 | covar_pop ( Y double precision, X double precision ) → double precision |
— | |
| 计算总体协方差。 | 现存 | |||
covar_samp基线 |
1 | covar_samp ( Y double precision, X double precision ) → double precision |
— | |
| 计算样本协方差。 | 现存 | |||
cume_dist基线 |
2 | cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precision |
9.41 次 | |
| 计算累积分布,也就是(位于假想行之前或与假想行同等的行数)/(总行数)。 | 现存 | |||
dense_rank基线 |
2 | dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint |
9.41 次 | |
| 计算假想行的排名,没有空缺;此函数实际上对同等行组进行计数。 | 现存 | |||
every基线 |
1 | every ( boolean ) → boolean |
— | |
| 这是标准 SQL 中与bool_and等价的函数。 | 现存 | |||
max基线 |
1 | max ( see text ) → same as input type |
— | |
| 计算非空输入值的最大值。 | 现存 | |||
min基线 |
1 | min ( see text ) → same as input type |
— | |
| 计算非空输入值的最小值。 | 现存 | |||
percent_rank基线 |
2 | percent_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precision |
9.41 次 | |
| 计算假想行的相对排名,即(rank - 1)/(总行数 - 1)。 | 现存 | |||
rank基线 |
2 | rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint |
9.41 次 | |
| 计算假想行的排名,允许空缺;即该行所属同等行组中第一行的行号。 | 现存 | |||
regr_avgx基线 |
1 | regr_avgx ( Y double precision, X double precision ) → double precision |
— | |
| 计算自变量的平均值,即sum(X)/N。 | 现存 | |||
regr_avgy基线 |
1 | regr_avgy ( Y double precision, X double precision ) → double precision |
— | |
| 计算因变量的平均值,即sum(Y)/N。 | 现存 | |||
regr_count基线 |
1 | regr_count ( Y double precision, X double precision ) → bigint |
— | |
| 计算两个输入都非空的行数。 | 现存 | |||
regr_intercept基线 |
1 | regr_intercept ( Y double precision, X double precision ) → double precision |
— | |
| 计算由(X,Y)数值对确定的最小二乘拟合线性方程的 y 轴截距。 | 现存 | |||
regr_r2基线 |
1 | regr_r2 ( Y double precision, X double precision ) → double precision |
— | |
| 计算相关系数的平方。 | 现存 | |||
regr_slope基线 |
1 | regr_slope ( Y double precision, X double precision ) → double precision |
— | |
| 计算由(X,Y)数值对确定的最小二乘拟合线性方程的斜率。 | 现存 | |||
regr_sxx基线 |
1 | regr_sxx ( Y double precision, X double precision ) → double precision |
— | |
| 计算自变量的“平方和”,即sum(X^2) - sum(X)^2/N。 | 现存 | |||
regr_sxy基线 |
1 | regr_sxy ( Y double precision, X double precision ) → double precision |
— | |
| 计算自变量与因变量的“乘积和”,即sum(X*Y) - sum(X) * sum(Y)/N。 | 现存 | |||
regr_syy基线 |
1 | regr_syy ( Y double precision, X double precision ) → double precision |
— | |
| 计算因变量的“平方和”,即sum(Y^2) - sum(Y)^2/N。 | 现存 | |||
stddev基线 |
1 | stddev ( numeric_type ) → double precision for real or double precision, otherwise numeric |
— | |
| 这是stddev_samp的一个历史别名。 | 现存 | |||
stddev_pop基线 |
1 | stddev_pop ( numeric_type ) → double precision for real or double precision, otherwise numeric |
— | |
| 计算输入值的总体标准差。 | 现存 | |||
stddev_samp基线 |
1 | stddev_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric |
— | |
| 计算输入值的样本标准差。 | 现存 | |||
string_agg基线 |
2 | string_agg ( value text, delimiter text ) → text |
172 次 | |
| 将非 NULL 输入值连接成一个字符串。 | 现存 | |||
sum基线 |
8 | sum ( smallint ) → bigint |
— | |
| 计算非空输入值的总和。 | 现存 | |||
var_pop基线 |
1 | var_pop ( numeric_type ) → double precision for real or double precision, otherwise numeric |
— | |
| 计算输入值的总体方差(总体标准差的平方)。 | 现存 | |||
var_samp基线 |
1 | var_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric |
— | |
| 计算输入值的样本方差(样本标准差的平方)。 | 现存 | |||
variance基线 |
1 | variance ( numeric_type ) → double precision for real or double precision, otherwise numeric |
— | |
| 这是 var_samp 的一个历史别名。 | 现存 | |||
first_value基线 |
1 | first_value ( value anyelement ) [null treatment] → anyelement |
191 次 | |
| 返回在窗口帧的第一行求得的value。 | 现存 | |||
lag基线 |
1 | lag ( value anycompatible [, offset integer [, default anycompatible]] ) [null treatment] → anycompatible |
192 次 | |
| 返回在分区内当前行之前offset行处计算的value;如果没有这样的行,则返回default(其类型必须与value兼容)。 | 现存 | |||
last_value基线 |
1 | last_value ( value anyelement ) [null treatment] → anyelement |
191 次 | |
| 返回在窗口帧的最后一行求得的value。 | 现存 | |||
lead基线 |
1 | lead ( value anycompatible [, offset integer [, default anycompatible]] ) [null treatment] → anycompatible |
192 次 | |
| 返回在分区内当前行之后offset行处计算的value;如果没有这样的行,则返回default(其类型必须与value兼容)。 | 现存 | |||
nth_value基线 |
1 | nth_value ( value anyelement, n integer ) [null treatment] → anyelement |
191 次 | |
| 返回在窗口帧的第n行求得的value(从1开始计数);如果没有这样的行,则返回NULL。 | 现存 | |||
ntile基线 |
1 | ntile ( num_buckets integer ) → integer |
— | |
| 返回从 1 到参数值的整数,将分区尽可能均等地划分。 | 现存 | |||
row_number基线 |
1 | row_number () → bigint |
— | |
| 返回当前行在其分区内的编号,从 1 开始计数。 | 现存 | |||
generate_series基线 |
5 | generate_series ( start integer, stop integer [, step integer] ) → setof integer |
162 次 | |
| 从start到stop生成一系列的值,步长为step。 | 现存 | |||
generate_subscripts基线 |
2 | generate_subscripts ( array anyarray, dim integer ) → setof integer |
— | |
| 生成一个包含给定数组第dim维的有效下标的序列。 | 现存 | |||
col_description基线 |
1 | col_description ( table oid, column integer ) → text |
— | |
| 返回表列的注释,列由所属表的 OID 和列号指定。 | 现存 | |||
current_catalog基线 |
1 | current_catalog → name |
— | |
| 返回当前数据库的名称。 | 现存 | |||
current_database基线 |
1 | current_database () → name |
— | |
| 返回当前数据库的名称。 | 现存 | |||
current_query基线 |
1 | current_query () → text |
— | |
| 返回客户端提交的当前正在执行的查询文本(可能包含多条语句)。 | 现存 | |||
current_schema基线 |
2 | current_schema → name |
— | |
| 返回在搜索路径中的第一个模式的名称(如果搜索路径为空则返回空值)。 | 现存 | |||
current_schemas基线 |
1 | current_schemas ( include_implicit boolean ) → name[] |
— | |
| 返回当前有效搜索路径中所有模式名称的数组,按优先级排序。 | 现存 | |||
current_user基线 |
1 | current_user → name |
— | |
| 返回当前执行上下文的用户名。 | 现存 | |||
format_type基线 |
1 | format_type ( type oid, typemod integer ) → text |
— | |
| 返回由其类型OID和可能的类型修饰符标识的数据类型的SQL名称。 | 现存 | |||
has_any_column_privilege基线 |
1 | has_any_column_privilege ( [user name or oid, ] table text or oid, privilege text ) → boolean |
— | |
| 用户是否对表的至少一列具有权限?如果拥有整个表的权限,或至少一列获得了该权限的列级授权,则返回真。 | 现存 | |||
has_column_privilege基线 |
1 | has_column_privilege ( [user name or oid, ] table text or oid, column text or smallint, privilege text ) → boolean |
— | |
| 用户对指定的表列有权限么?如果对整个表持有权限,或者对列授予了列级别的权限,则会成功。 | 现存 | |||
has_database_privilege基线 |
1 | has_database_privilege ( [user name or oid, ] database text or oid, privilege text ) → boolean |
— | |
| 用户对数据库有权限吗?允许的权限类型为CREATE、CONNECT、TEMPORARY 和 TEMP(相当于 TEMPORARY)。 | 现存 | |||
has_foreign_data_wrapper_privilege基线 |
1 | has_foreign_data_wrapper_privilege ( [user name or oid, ] fdw text or oid, privilege text ) → boolean |
— | |
| 用户是否具有外部数据包装器权限?唯一允许的权限类型为USAGE。 | 现存 | |||
has_function_privilege基线 |
1 | has_function_privilege ( [user name or oid, ] function text or oid, privilege text ) → boolean |
— | |
| 用户对函数有权限吗?唯一允许的权限类型是EXECUTE。 | 现存 | |||
has_language_privilege基线 |
1 | has_language_privilege ( [user name or oid, ] language text or oid, privilege text ) → boolean |
— | |
| 用户对语言有权限吗?唯一允许的权限类型是USAGE。 | 现存 | |||
has_schema_privilege基线 |
1 | has_schema_privilege ( [user name or oid, ] schema text or oid, privilege text ) → boolean |
— | |
| 用户对模式有权限吗?允许的权限类型是CREATE 和USAGE。 | 现存 | |||
has_sequence_privilege基线 |
1 | has_sequence_privilege ( [user name or oid, ] sequence text or oid, privilege text ) → boolean |
— | |
| 用户是否具有序列权限?允许的权限类型为USAGE、SELECT和UPDATE。 | 现存 | |||
has_server_privilege基线 |
1 | has_server_privilege ( [user name or oid, ] server text or oid, privilege text ) → boolean |
— | |
| 用户是否对外部服务器有权限?唯一允许的权限类型是USAGE。 | 现存 | |||
has_table_privilege基线 |
1 | has_table_privilege ( [user name or oid, ] table text or oid, privilege text ) → boolean |
— | |
| 用户对表有权限吗?允许的权限类型有SELECT、INSERT、UPDATE、DELETE、TRUNCATE、REFERENCES、TRIGGER和MAINTAIN。 | 现存 | |||
has_tablespace_privilege基线 |
1 | has_tablespace_privilege ( [user name or oid, ] tablespace text or oid, privilege text ) → boolean |
— | |
| 用户对表空间有权限吗?唯一允许的权限类型是CREATE。 | 现存 | |||
inet_client_addr基线 |
1 | inet_client_addr () → inet |
— | |
| 返回当前客户端的 IP 地址;如果当前连接通过 Unix 域套接字建立,则返回NULL。 | 现存 | |||
inet_client_port基线 |
1 | inet_client_port () → integer |
— | |
| 返回当前客户端的IP端口号,如果当前连接是通过Unix 域套接字则返回NULL。 | 现存 | |||
inet_server_addr基线 |
1 | inet_server_addr () → inet |
— | |
| 返回服务器接受当前连接的IP地址,如果当前连接是通过Unix 域套接字则返回NULL。 | 现存 | |||
inet_server_port基线 |
1 | inet_server_port () → integer |
— | |
| 返回服务器接受当前连接的IP端口号,如果当前连接是通过Unix 域套接字则返回NULL。 | 现存 | |||
obj_description基线 |
2 | obj_description ( object oid, catalog name ) → text |
— | |
| 返回数据库对象的注释,对象由其 OID 和所在系统目录的名称指定。 | 现存 | |||
pg_backend_pid基线 |
1 | pg_backend_pid () → integer |
— | |
| 返回附加到当前会话的服务器进程的进程ID。 | 现存 | |||
pg_conf_load_time基线 |
1 | pg_conf_load_time () → timestamp with time zone |
— | |
| 返回服务器配置文件最近一次加载的时间。 | 现存 | |||
pg_conversion_is_visible基线 |
1 | pg_conversion_is_visible ( conversion oid ) → boolean |
— | |
| 转换在搜索路径中可见吗? | 现存 | |||
pg_function_is_visible基线 |
1 | pg_function_is_visible ( function oid ) → boolean |
— | |
| 函数在搜索路径中可见吗?(这也适用于过程和聚合。 | 现存 | |||
pg_get_constraintdef基线 |
1 | pg_get_constraintdef ( constraint oid [, pretty boolean] ) → text |
— | |
| 重建约束的创建命令。 | 现存 | |||
pg_get_expr基线 |
1 | pg_get_expr ( expr pg_node_tree, relation oid [, pretty boolean] ) → text |
9.11 次 | |
| 反编译存储在系统目录中的表达式的内部形式,例如列的默认值。 | 现存 | |||
pg_get_function_arguments基线 |
1 | pg_get_function_arguments ( func oid ) → text |
— | |
| 重建函数或过程的参数列表,采用其在CREATE FUNCTION中应有的形式(包括默认值)。 | 现存 | |||
pg_get_function_identity_arguments基线 |
1 | pg_get_function_identity_arguments ( func oid ) → text |
— | |
| 重建标识函数或过程所需的参数列表,采用其在ALTER FUNCTION等命令中应有的形式。 | 现存 | |||
pg_get_function_result基线 |
1 | pg_get_function_result ( func oid ) → text |
— | |
| 重建函数的RETURNS子句,采用其在CREATE FUNCTION中应有的形式。 | 现存 | |||
pg_get_functiondef基线 |
1 | pg_get_functiondef ( func oid ) → text |
— | |
| 重建函数或过程的创建命令。 | 现存 | |||
pg_get_indexdef基线 |
1 | pg_get_indexdef ( index oid [, column integer, pretty boolean] ) → text |
— | |
| 重建索引的创建命令。 | 现存 | |||
pg_get_keywords基线 |
1 | pg_get_keywords () → setof record ( word text, catcode "char", barelabel boolean, catdesc text, baredesc text ) |
141 次 | |
| 返回描述服务器所识别 SQL 关键字的一组记录。 | 现存 | |||
pg_get_ruledef基线 |
1 | pg_get_ruledef ( rule oid [, pretty boolean] ) → text |
— | |
| 重建规则的创建命令。 | 现存 | |||
pg_get_serial_sequence基线 |
1 | pg_get_serial_sequence ( table text, column text ) → text |
— | |
| 返回与列相关联的序列名称,如果没有序列与该列相关联则返回NULL。 | 现存 | |||
pg_get_triggerdef基线 |
1 | pg_get_triggerdef ( trigger oid [, pretty boolean] ) → text |
— | |
| 重建触发器的创建命令。 | 现存 | |||
pg_get_userbyid基线 |
1 | pg_get_userbyid ( role oid ) → name |
— | |
| 根据OID返回角色名。 | 现存 | |||
pg_get_viewdef基线 |
3 | pg_get_viewdef ( view oid [, pretty boolean] ) → text |
9.21 次 | |
| 重建定义视图或物化视图的SELECT命令。 | 现存 | |||
pg_has_role基线 |
1 | pg_has_role ( [user name or oid, ] role text or oid, privilege text ) → boolean |
— | |
| 用户是否具有角色权限?允许的权限类型为MEMBER、USAGE和SET。 | 现存 | |||
pg_is_other_temp_schema基线 |
1 | pg_is_other_temp_schema ( oid ) → boolean |
— | |
| 如果给定的OID是另一个会话的临时模式的OID则返回真。 | 现存 | |||
pg_listening_channels基线 |
1 | pg_listening_channels () → setof text |
— | |
| 返回当前会话正在侦听的异步通知通道的名称集。 | 现存 | |||
pg_my_temp_schema基线 |
1 | pg_my_temp_schema () → oid |
— | |
| 返回当前会话的临时模式的OID,如果没有则返回0(因为它没有创建任何临时表)。 | 现存 | |||
pg_opclass_is_visible基线 |
1 | pg_opclass_is_visible ( opclass oid ) → boolean |
— | |
| 操作符类在搜索路径中可见吗? | 现存 | |||
pg_operator_is_visible基线 |
1 | pg_operator_is_visible ( operator oid ) → boolean |
— | |
| 操作符在搜索路径中可见吗? | 现存 | |||
pg_postmaster_start_time基线 |
1 | pg_postmaster_start_time () → timestamp with time zone |
— | |
| 返回服务器启动时的时间。 | 现存 | |||
pg_table_is_visible基线 |
1 | pg_table_is_visible ( table oid ) → boolean |
— | |
| 表在搜索路径中可见吗?(这适用于所有类型的关系,包括视图、物化视图、索引、序列和外部表。 | 现存 | |||
pg_tablespace_databases基线 |
1 | pg_tablespace_databases ( tablespace oid ) → setof oid |
— | |
| 返回在指定表空间中存储了对象的数据库 OID 集合。 | 现存 | |||
pg_ts_config_is_visible基线 |
1 | pg_ts_config_is_visible ( config oid ) → boolean |
— | |
| 全文检索配置是否在搜索路径中可见? | 现存 | |||
pg_ts_dict_is_visible基线 |
1 | pg_ts_dict_is_visible ( dict oid ) → boolean |
— | |
| 全文检索词典是否在搜索路径中可见? | 现存 | |||
pg_ts_parser_is_visible基线 |
1 | pg_ts_parser_is_visible ( parser oid ) → boolean |
— | |
| 全文检索解析器是否在搜索路径中可见? | 现存 | |||
pg_ts_template_is_visible基线 |
1 | pg_ts_template_is_visible ( template oid ) → boolean |
— | |
| 全文检索模板是否在搜索路径中可见? | 现存 | |||
pg_type_is_visible基线 |
1 | pg_type_is_visible ( type oid ) → boolean |
— | |
| 类型(或域)在搜索路径中可见吗? | 现存 | |||
pg_typeof基线 |
1 | pg_typeof ( "any" ) → regtype |
— | |
| 返回所传入值的数据类型的 OID。 | 现存 | |||
session_user基线 |
1 | session_user → name |
— | |
| 返回会话用户名。 | 现存 | |||
shobj_description基线 |
1 | shobj_description ( object oid, catalog name ) → text |
— | |
| 返回共享数据库对象的注释,对象由其 OID 和所在系统目录的名称指定。 | 现存 | |||
txid_current基线 |
1 | txid_current () → bigint |
— | |
| 参见 pg_current_xact_id()。 | 现存 | |||
txid_current_snapshot基线 |
1 | txid_current_snapshot () → txid_snapshot |
— | |
| 参见 pg_current_snapshot()。 | 现存 | |||
txid_snapshot_xip基线 |
1 | txid_snapshot_xip ( txid_snapshot ) → setof bigint |
— | |
| 参见 pg_snapshot_xip()。 | 现存 | |||
txid_snapshot_xmax基线 |
1 | txid_snapshot_xmax ( txid_snapshot ) → bigint |
— | |
| 参见 pg_snapshot_xmax()。 | 现存 | |||
txid_snapshot_xmin基线 |
1 | txid_snapshot_xmin ( txid_snapshot ) → bigint |
— | |
| 参见 pg_snapshot_xmin()。 | 现存 | |||
txid_visible_in_snapshot基线 |
1 | txid_visible_in_snapshot ( bigint, txid_snapshot ) → boolean |
— | |
| 参见 pg_visible_in_snapshot()。 | 现存 | |||
user基线 |
1 | user → name |
— | |
| 这个相当于 current_user。 | 现存 | |||
version基线 |
1 | version () → text |
— | |
| 返回描述PostgreSQL 服务器版本的字符串。 | 现存 | |||
current_setting基线 |
1 | current_setting ( setting_name text [, missing_ok boolean] ) → text |
9.61 次 | |
| 返回设置setting_name的当前值。 | 现存 | |||
pg_advisory_lock基线 |
2 | pg_advisory_lock ( key bigint ) → void |
— | |
| 获取一个排他的会话级咨询锁,如有必要则等待。 | 现存 | |||
pg_advisory_lock_shared基线 |
2 | pg_advisory_lock_shared ( key bigint ) → void |
— | |
| 获取一个共享的会话级咨询锁,如有必要则等待。 | 现存 | |||
pg_advisory_unlock基线 |
2 | pg_advisory_unlock ( key bigint ) → boolean |
— | |
| 释放以前获取的排他会话级咨询锁。 | 现存 | |||
pg_advisory_unlock_all基线 |
1 | pg_advisory_unlock_all () → void |
— | |
| 释放当前会话所持有的所有会话级咨询锁。 | 现存 | |||
pg_advisory_unlock_shared基线 |
2 | pg_advisory_unlock_shared ( key bigint ) → boolean |
— | |
| 释放以前获取的共享会话级咨询锁。 | 现存 | |||
pg_cancel_backend基线 |
1 | pg_cancel_backend ( pid integer ) → boolean |
— | |
| 取消具有指定进程ID的后端进程的会话的当前查询。 | 现存 | |||
pg_column_size基线 |
1 | pg_column_size ( "any" ) → integer |
— | |
| 显示用于存储任何单个数据值的字节数。 | 现存 | |||
pg_current_xlog_insert_location基线 |
1 | pg_current_xlog_insert_location ( ) → pg_lsn |
9.41 次 | |
| 获取当前预写式日志插入位置 | 于 10 移除 | |||
pg_current_xlog_location基线 |
1 | pg_current_xlog_location ( ) → pg_lsn |
9.41 次 | |
| 获取当前预写式日志写入位置 | 于 10 移除 | |||
pg_database_size基线 |
2 | pg_database_size ( name ) → bigint |
— | |
| 计算具有指定名称或OID的数据库使用的总磁盘空间。 | 现存 | |||
pg_indexes_size基线 |
1 | pg_indexes_size ( regclass ) → bigint |
— | |
| 计算附加到指定表的索引所使用的总磁盘空间。 | 现存 | |||
pg_is_in_recovery基线 |
1 | pg_is_in_recovery () → boolean |
— | |
| 如果恢复仍在进行则返回真。 | 现存 | |||
pg_last_xlog_receive_location基线 |
1 | pg_last_xlog_receive_location ( ) → pg_lsn |
9.41 次 | |
| 获取流复制最近接收并同步到磁盘的预写式日志位置。 | 于 10 移除 | |||
pg_last_xlog_replay_location基线 |
1 | pg_last_xlog_replay_location ( ) → pg_lsn |
9.41 次 | |
| 获取恢复期间最近重放的预写式日志位置。 | 于 10 移除 | |||
pg_ls_dir基线 |
1 | pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean] ) → setof text |
9.51 次 | |
| 返回指定目录中所有文件的名称(包括目录及其他特殊文件)。 | 现存 | |||
pg_read_file基线 |
1 | pg_read_file ( filename text [, offset bigint, length bigint] [, missing_ok boolean] ) → text |
163 次 | |
| 返回一个文本文件的全部或部分,从给定的字节offset开始,最多返回length字节(如果先到达文件末尾,则返回更少)。 | 现存 | |||
pg_relation_filenode基线 |
1 | pg_relation_filenode ( relation regclass ) → oid |
— | |
| 返回当前分配给指定关系的“文件节点”编号。 | 现存 | |||
pg_relation_filepath基线 |
1 | pg_relation_filepath ( relation regclass ) → text |
— | |
| 返回关系的完整文件路径名称(相对于数据库集簇的数据目录,即PGDATA)。 | 现存 | |||
pg_relation_size基线 |
1 | pg_relation_size ( relation regclass [, fork text] ) → bigint |
— | |
| 计算指定关系的一个“分支”所使用的磁盘空间。 | 现存 | |||
pg_reload_conf基线 |
1 | pg_reload_conf () → boolean |
— | |
| 使PostgreSQL服务器的所有进程重新加载其配置文件。 | 现存 | |||
pg_rotate_logfile基线 |
1 | pg_rotate_logfile () → boolean |
— | |
| 通知日志文件管理器立即切换到一个新的输出文件。 | 现存 | |||
pg_size_pretty基线 |
2 | pg_size_pretty ( bigint ) → text |
9.21 次 | |
| 将字节大小转换为更易于人类阅读的格式,带有大小单位(字节,kB,MB,GB,TB或PB)。 | 现存 | |||
pg_start_backup基线 |
1 | pg_start_backup ( label text [, fast boolean [, exclusive boolean ]] ) → pg_lsn |
9.62 次 | |
| 准备服务器开始在线备份。 | 于 15 移除 | |||
pg_stat_file基线 |
1 | pg_stat_file ( filename text [, missing_ok boolean] ) → record ( size bigint, access timestamp with time zone, modification timestamp with time zone, change timestamp with time zone, creation timestamp with time zone, isdir boolean ) |
9.51 次 | |
| 返回一个记录,包含文件大小、最后访问时间戳、最后修改时间戳、最后文件状态变更时间戳(仅限 Unix 平台)、文件创建时间戳(仅限 Windows)以及一个指示其是否为目录的标志。 | 现存 | |||
pg_stop_backup基线 |
2 | pg_stop_backup ( exclusive boolean [, wait_for_archive boolean ] ) → setof record ( lsn pg_lsn, labelfile text, spcmapfile text ) |
103 次 | |
| 结束排他或非排他的在线备份。 | 于 15 移除 | |||
pg_switch_xlog基线 |
1 | pg_switch_xlog ( ) → pg_lsn |
9.41 次 | |
| 强制切换到新的预写式日志文件(默认仅限超级用户,但可以向其他用户授予EXECUTE权限以运行此函数) | 于 10 移除 | |||
pg_table_size基线 |
1 | pg_table_size ( regclass ) → bigint |
— | |
| 计算指定表所使用的磁盘空间,不包括索引(但包括其 TOAST 表(如有)、空闲空间映射和可见性映射)。 | 现存 | |||
pg_tablespace_size基线 |
2 | pg_tablespace_size ( name ) → bigint |
— | |
| 计算具有指定名称或OID的表空间中使用的总磁盘空间。 | 现存 | |||
pg_terminate_backend基线 |
1 | pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean |
141 次 | |
| 终止具有指定进程ID的后端进程的会话。 | 现存 | |||
pg_total_relation_size基线 |
1 | pg_total_relation_size ( regclass ) → bigint |
— | |
| 计算指定表所使用的总磁盘空间,包括所有索引和TOAST数据。 | 现存 | |||
pg_try_advisory_lock基线 |
2 | pg_try_advisory_lock ( key bigint ) → boolean |
— | |
| 尝试获取一个排他的会话级咨询锁。 | 现存 | |||
pg_try_advisory_lock_shared基线 |
2 | pg_try_advisory_lock_shared ( key bigint ) → boolean |
— | |
| 尝试获取一个共享的会话级咨询锁。 | 现存 | |||
pg_xlogfile_name基线 |
1 | pg_xlogfile_name ( location pg_lsn ) → text |
9.41 次 | |
| 将事务日志位置字符串转换为文件名 | 于 10 移除 | |||
pg_xlogfile_name_offset基线 |
1 | pg_xlogfile_name_offset ( location pg_lsn ) → text, integer |
9.41 次 | |
| 将事务日志位置字符串转换为文件名和文件内的十进制字节偏移量 | 于 10 移除 | |||
set_config基线 |
1 | set_config ( setting_name text, new_value text, is_local boolean ) → text |
— | |
| 将参数setting_name设置为new_value,并返回该值。 | 现存 | |||
suppress_redundant_updates_trigger基线 |
1 | suppress_redundant_updates_trigger ( ) → trigger |
— | |
| 抑制不改变数据的更新操作。 | 现存 | |||
tsvector_update_trigger基线 |
1 | tsvector_update_trigger ( ) → trigger |
— | |
| 根据关联的纯文本文档列自动更新tsvector列。 | 现存 | |||
tsvector_update_trigger_column基线 |
1 | tsvector_update_trigger_column ( ) → trigger |
— | |
| 根据关联的纯文本文档列自动更新tsvector列。 | 现存 | |||