内置函数和运算符
以下表格列出了 MAXIR 支持的内置函数和运算符的类别。MAXIR 支持所有的函数和运算符,除了 STABLE 和 VOLATILE 函数,这些函数受到 MAXIR Function Types 中所述的限制。有关这些内置函数和运算符的更多信息,请参阅 PostgreSQL 文档的 Functions and Operators 部分。
| 运算符/函数类别 | 易变函数 | 稳定函数 | 限制 |
|---|---|---|---|
| 逻辑运算符 | N/A | N/A | N/A |
| 比较运算符 | N/A | N/A | N/A |
| 数学函数和运算符 | random setseed | N/A | N/A |
| 字符串函数和运算符 | 所有内置转换函数 | convert pg_client_encoding | N/A |
| 二进制字符串函数和运算符 | N/A | N/A | N/A |
| 位串函数和运算符 | N/A | N/A | N/A |
| 模式匹配 | N/A | N/A | N/A |
| 数据类型格式化函数 | N/A | to_char to_timestamp | N/A |
| 日期/时间函数和运算符 | timeofday | age current_date current_time current_timestamp localtime localtimestamp now | N/A |
| 序列操作函数 | nextval() setval() | N/A | N/A |
| 条件表达式 | N/A | N/A | N/A |
| 数组函数和运算符 | N/A | 所有数组函数 | N/A |
| 聚合函数 | N/A | N/A | N/A |
| 子查询表达式 | N/A | N/A | N/A |
| 行和数组比较 | N/A | N/A | N/A |
| 返回集函数 | generate_series | N/A | N/A |
| 系统信息函数 | N/A | 所有会话信息函数 所有访问权限查询函数 所有 Schema 可见性查询函数 所有系统目录信息函数 所有注释信息函数 所有事务 ID 和快照 | N/A |
| 系统管理函数 | set_config pg_cancel_backend pg_reload_conf pg_rotate_logfile pg_rotate_logfile pg_start_backup pg_size_pretty pg_ls_dir pg_read_file pg_stat_file | current_setting 所有数据库对象大小函数 | 函数 pg_column_size 显示存储值所需的字节,可能带有 TOAST 压缩。 |
| XML 函数 和函数式表达式 | N/A | cursor_to_xml(cursor refcursor, count int, nulls boolean, tableforest boolean, targetns text) cursor_to_xmlschema(cursor refcursor, nulls boolean, tableforest boolean, targetns text) database_to_xml(nulls boolean, tableforest boolean, targetns text) database_to_xmlschema(nulls boolean, tableforest boolean, targetns text) database_to_xml_and_xmlschema(nulls boolean, tableforest boolean, targetns text) query_to_xml(query text, nulls boolean, tableforest boolean, targetns text) query_to_xmlschema(query text, nulls boolean, tableforest boolean, targetns text) query_to_xml_and_xmlschema(query text, nulls boolean, tableforest boolean, targetns text) schema_to_xml(schema name, nulls boolean, tableforest boolean, targetns text) schema_to_xmlschema(schema name, nulls boolean, tableforest boolean, targetns text) schema_to_xml_and_xmlschema(schema name, nulls boolean, tableforest boolean, targetns text) table_to_xml(tbl regclass, nulls boolean, tableforest boolean, targetns text) table_to_xmlschema(tbl regclass, nulls boolean, tableforest boolean, targetns text) table_to_xml_and_xmlschema(tbl regclass, nulls boolean, tableforest boolean, targetns text) xmlagg(xml) xmlconcat(xml[, …]) xmlelement(name name [, xmlattributes(value [AS attname] [, … ])] [, content, …]) xmlexists(text, xml) xmlforest(content [AS name] [, …]) xml_is_well_formed(text) xml_is_well_formed_document(text) xml_is_well_formed_content(text) xmlparse ( { DOCUMENT | CONTENT } value) xpath(text, xml) xpath(text, xml, text[]) xpath_exists(text, xml) path_exists(text, xml, text[]) xmlpi(name target [, content]) xmlroot(xml, version text | no value [, standalone yes|no|no value]) xmlserialize ( { DOCUMENT | CONTENT } value AS type ) xml(text)\text(xml) xmlcomment(xml)\xmlconcat2(xml, xml) |