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()调用设置种子;参数必须在-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扩展为长度length,通过前置字符fill(默认空格)。 | 现存 | |||
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 |
— | |
| 替换string从start字符开始的子串,并用newsubstring扩展到count字符。 | 现存 | |||
pg_client_encoding基线 |
1 | pg_client_encoding ( ) → name |
— | |
| 返回当前客户端编码名称。 | 现存 | |||
position基线 |
3 | position ( substring text IN string text ) → integer |
— | |
| 返回string中指定的substring的第一个起始索引,如果不存在则返回零,。 | 现存 | |||
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标志,则返回所有匹配的子字符串; 参见Section 9.7.3.1.6。 | 现存 | |||
regexp_replace基线 |
4 | regexp_replace ( string text, pattern text, replacement text [, flags text ] ) → text |
193 次 | |
| 替换第一个与 POSIX 正则表达式pattern匹配的子字符串,如果使用了g标志,则替换所有这样的匹配;参见Section 9.7.3.1.7。 | 现存 | |||
regexp_split_to_array基线 |
2 | regexp_split_to_array ( string text, pattern text [, flags text ] ) → text[] |
191 次 | |
| 使用POSIX正则表达式作为分隔符拆分string,生成一个结果的数组; 参见 Section 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,生成一组结果;参见 Section 9.7.3.1.8。 | 现存 | |||
repeat基线 |
1 | repeat ( string text, number integer ) → text |
— | |
| 重复string指定number的次数。 | 现存 | |||
replace基线 |
1 | replace ( string text, from text, to text ) → text |
— | |
| 将string 中当前的子串from替换为子串to。 | 现存 | |||
rpad基线 |
1 | rpad ( string text, length integer [, fill text ] ) → text |
— | |
| 扩展 string 到长度 length,通过追加fill 字符(默认为空格). 如果string 已经比 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|'th-from-last 字段。 | 现存 | |||
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 |
— | |
| 返回在string中指定的substring的第一个起始索引,如果不存在则为零。 | 现存 | |||
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的二进制字符串 (适用的转换请参阅Section 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'th 位。 | 现存 | |||
get_byte基线 |
1 | get_byte ( bytes bytea, n integer ) → integer |
— | |
| 从二进制字符串中提取 n'th 字节。 | 现存 | |||
set_bit基线 |
2 | set_bit ( bytes bytea, n bigint, newvalue integer ) → bytea |
— | |
| 设置二进制字符串中的n'th位为newvalue。 | 现存 | |||
set_byte基线 |
1 | set_byte ( bytes bytea, n integer, newvalue integer ) → bytea |
— | |
| 设置二进制字符串中的 n'th 字节到 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 |
— | |
| 当前日期和时间(在语句执行期间变化);参见Section 9.9.5 | 现存 | |||
current_date基线 |
1 | current_date → date |
— | |
| 当前日期;参见 Section 9.9.5 | 现存 | |||
current_time基线 |
3 | current_time → time with time zone |
— | |
| 一天中的当前时间;参见 Section 9.9.5 | 现存 | |||
current_timestamp基线 |
3 | current_timestamp → timestamp with time zone |
— | |
| 当前日期和时间 (当前事务的开始);参见 Section 9.9.5 | 现存 | |||
date_part基线 |
3 | date_part ( text, timestamp ) → double precision |
— | |
| 获取时间戳字段 (等同于 extract);参见 Section 9.9.1 | 现存 | |||
date_trunc基线 |
4 | date_trunc ( text, timestamp ) → timestamp |
183 次 | |
| 截断到指定的精度;参见 Section 9.9.2 | 现存 | |||
extract基线 |
3 | extract ( field FROM timestamp ) → numeric |
192 次 | |
| 获取时间戳子字段;参见 Section 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 |
— | |
| 一天中当前时间;参见 Section 9.9.5 | 现存 | |||
localtimestamp基线 |
3 | localtimestamp → timestamp |
— | |
| 当前日期和时间(当前事务的开始);参见 Section 9.9.5 | 现存 | |||
now基线 |
2 | now ( ) → timestamp with time zone |
— | |
| 当前日期和时间(当前事务的开始);参见 Section 9.9.5 | 现存 | |||
pg_sleep基线 |
1 | pg_sleep ( double precision ) |
— | |
| pg_sleep使当前会话的进程休眠,直到过去给定的秒数。 | 现存 | |||
statement_timestamp基线 |
2 | statement_timestamp ( ) → timestamp with time zone |
— | |
| 当前日期和时间(当前语句的开始);参见 Section 9.9.5 | 现存 | |||
timeofday基线 |
2 | timeofday ( ) → text |
— | |
| 当前的日期和时间 (类似 clock_timestamp, 但是采用 text 字符串);参见 Section 9.9.5 | 现存 | |||
transaction_timestamp基线 |
2 | transaction_timestamp ( ) → timestamp with time zone |
— | |
| 当前日期和时间(当前事务的开始);参见 Section 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 次 | |
| 以缩写形式显示document中query的匹配项,该匹配项必须是原始文本,而不是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函数返回它的第一个非空参数的值。 | 现存 | |||
GREATEST基线 |
1 | GREATEST(value [, ...]) |
— | |
| 暂无一句话说明 | 现存 | |||
LEAST基线 |
1 | LEAST(value [, ...]) |
— | |
| GREATEST和LEAST函数从一个任意的数字表达式列表里选取最大或者最小的数值。 | 现存 | |||
NULLIF基线 |
1 | NULLIF(value1, value2) |
— | |
| 当value1和value2相等时,NULLIF返回一个空值。 | 现存 | |||
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 |
— | |
| 计算所有非空输入值的逐位AND。 | 现存 | |||
bit_or基线 |
4 | bit_or ( smallint ) → smallint |
— | |
| 计算所有非空输入值的逐位OR。 | 现存 | |||
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 |
— | |
| 这是对应bool_and的SQL标准的等效物。 | 现存 | |||
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) / (total rows - 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 of products”, 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 |
— | |
| 返回具有存储在指定表空间中的对象的数据库的OIDs集。 | 现存 | |||
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 次 | |
| Get current transaction log insert location | 于 10 移除 | |||
pg_current_xlog_location基线 |
1 | pg_current_xlog_location ( ) → pg_lsn |
9.41 次 | |
| Get current transaction log write location | 于 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 次 | |
| Get last transaction log location received and synced to disk by streaming replication. | 于 10 移除 | |||
pg_last_xlog_replay_location基线 |
1 | pg_last_xlog_replay_location ( ) → pg_lsn |
9.41 次 | |
| Get last transaction log location replayed during recovery. | 于 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 |
— | |
| 返回当前分配给指定关系的“filenode”数字。 | 现存 | |||
pg_relation_filepath基线 |
1 | pg_relation_filepath ( relation regclass ) → text |
— | |
| 返回关系的完整文件路径名称(相对于数据库集簇的数据目录,即关系的PGDATA)。 | 现存 | |||
pg_relation_size基线 |
1 | pg_relation_size ( relation regclass [, fork text ] ) → bigint |
— | |
| 计算指定关系的一个“fork”所使用的磁盘空间。 | 现存 | |||
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 次 | |
| Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function) | 于 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 次 | |
| Convert transaction log location string to file name | 于 10 移除 | |||
pg_xlogfile_name_offset基线 |
1 | pg_xlogfile_name_offset ( location pg_lsn ) → text, integer |
9.41 次 | |
| Convert transaction log location string to file name and decimal byte offset within file | 于 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列。 | 现存 | |||