PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
npoints返回点的数量。
Returns the number of points.
npoints ( geometric_type ) → integer
几何函数和操作符函数 · 几何函数和操作符
nth_value返回在窗口帧的第n行求得的value(从1开始计数);如果没有这样的行,则返回NULL。
Returns value evaluated at the row that is the n'th row of the window frame (counting from 1); returns NULL if there is no such row.
nth_value ( …函数 · 窗口函数
ntile返回从 1 到参数值的整数,将分区尽可能均等地划分。
Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.
ntile ( num_buckets integer ) → integer
窗口函数函数 · 窗口函数
NULLIF当value1和value2相等时,NULLIF返回 null。
The NULLIF function returns a null value if value1 equals value2; otherwise it returns value1.
NULLIF(value1, value2)
条件表达式函数 · 条件表达式
num_nonnulls返回非 null 参数的数量。
Returns the number of non-null arguments.
num_nonnulls ( VARIADIC "any" ) → integer
比较函数和操作符函数 · 比较函数和操作符
num_nulls返回 null 参数的数量。
Returns the number of null arguments.
num_nulls ( VARIADIC "any" ) → integer
比较函数和操作符函数 · 比较函数和操作符
numnode返回tsquery中词位和操作符的数目。
Returns the number of lexemes plus operators in the tsquery.
numnode ( tsquery ) → integer
文本检索函数和操作符函数 · 文本检索函数和操作符
obj_description返回数据库对象的注释,对象由其 OID 和所在系统目录的名称指定。
Returns the comment for a database object specified by its OID and the name of the containing system catalog.
obj_description ( object oid, catalog name ) →…函数 · 系统信息函数和操作符
octet_length返回字符串的字节数。
Returns number of bytes in the string.
octet_length ( text ) → integer
octet_length ( character ) → integer
octet_length ( bytea ) → integer
octet_length ( bit ) → integer
字符串函数和操…函数 · 字符串函数和操作符
overlay用newsubstring替换string中从第start个字符开始、长度为count个字符的子字符串。
Replaces the substring of string that starts at the start'th character and extends for count characters with newsubstring.
overlay ( stri…函数 · 字符串函数和操作符
parse_ident将qualified_identifier拆分为一个标识符数组,去除各个标识符的引号。
Splits qualified_identifier into an array of identifiers, removing any quoting of individual identifiers.
parse_ident ( qualified_identifier text …函数 · 字符串函数和操作符
path将多边形转换为具有相同点列表的封闭路径。
Converts polygon to a closed path with the same list of points.
path ( polygon ) → path
几何函数和操作符函数 · 几何函数和操作符
pclose将路径转换为封闭形式。
Converts path to closed form.
pclose ( path ) → path
几何函数和操作符函数 · 几何函数和操作符
percent_rank计算假想行的相对排名,即(rank - 1)/(总行数 - 1)。
Computes the relative rank of the hypothetical row, that is (rank - 1) / (total rows - 1).
percent_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → dou…函数 · 聚合函数
percentile_cont计算连续百分位点,该值对应于聚合参数值有序集合中的指定fraction。
Computes the continuous percentile, a value corresponding to the specified fraction within the ordered set of aggregated argument values.
percentile_cont…函数 · 聚合函数
percentile_disc计算离散百分位数,即聚合参数值的有序集合中的第一个值,该值在排序中的位置等于或超过指定的fraction。
Computes the discrete percentile, the first value within the ordered set of aggregated argument values whose position in the ordering eq…函数 · 聚合函数
permutepermute ( i, size [, seed ] ) → integer i的置换值,范围在[0, size)内。它表示i(模size)在整数0...size-1的伪随机置换中的新位置;该置换由seed参数化,详见下文。 permute(0, 4) → 0至3之间的整数pgbench › 注解 › 内置函数
pg_advisory_lock获取一个排他的会话级咨询锁,如有必要则等待。
Obtains an exclusive session-level advisory lock, waiting if necessary.
pg_advisory_lock ( key bigint ) → void
pg_advisory_lock ( key1 integer, key2 integer ) → void
系…函数 · 系统管理函数
pg_advisory_lock_shared获取一个共享的会话级咨询锁,如有必要则等待。
Obtains a shared session-level advisory lock, waiting if necessary.
pg_advisory_lock_shared ( key bigint ) → void
pg_advisory_lock_shared ( key1 integer, key2 integer …函数 · 系统管理函数
pg_advisory_unlock释放以前获取的排他会话级咨询锁。
Releases a previously-acquired exclusive session-level advisory lock.
pg_advisory_unlock ( key bigint ) → boolean
pg_advisory_unlock ( key1 integer, key2 integer ) → boolean…函数 · 系统管理函数
pg_advisory_unlock_all释放当前会话所持有的所有会话级咨询锁。
Releases all session-level advisory locks held by the current session.
pg_advisory_unlock_all () → void
系统管理函数函数 · 系统管理函数
pg_advisory_unlock_shared释放以前获取的共享会话级咨询锁。
Releases a previously-acquired shared session-level advisory lock.
pg_advisory_unlock_shared ( key bigint ) → boolean
pg_advisory_unlock_shared ( key1 integer, key2 integer …函数 · 系统管理函数
pg_advisory_xact_lock获取一个排他的事务级咨询锁,如有必要则等待。
Obtains an exclusive transaction-level advisory lock, waiting if necessary.
pg_advisory_xact_lock ( key bigint ) → void
pg_advisory_xact_lock ( key1 integer, key2 inte…函数 · 系统管理函数
pg_advisory_xact_lock_shared获取一个共享的事务级咨询锁,如有必要则等待。
Obtains a shared transaction-level advisory lock, waiting if necessary.
pg_advisory_xact_lock_shared ( key bigint ) → void
pg_advisory_xact_lock_shared ( key1 integer,…函数 · 系统管理函数
pg_available_wal_summaries返回数据目录中 pg_wal/summaries下现有 WAL 汇总文件的信息。
Returns information about the WAL summary files present in the data directory, under pg_wal/summaries.
pg_available_wal_summaries () → setof record (…函数 · 系统信息函数和操作符
pg_backend_pid返回附加到当前会话的服务器进程的进程ID。
Returns the process ID of the server process attached to the current session.
pg_backend_pid () → integer
系统信息函数和操作符函数 · 系统信息函数和操作符
pg_backup_start准备服务器开始在线备份。
Prepares the server to begin an on-line backup.
pg_backup_start ( label text [, fast boolean] ) → pg_lsn
系统管理函数函数 · 系统管理函数
pg_backup_start_time如果正在进行在线排他备份,返回其开始时间,否则返回 NULL。
Returns the start time of the current on-line exclusive backup if one is in progress, otherwise NULL.
pg_backup_start_time () → timestamp with time zone
系统管理函…函数 · 系统管理函数
pg_backup_stop结束在线备份。
Finishes performing an on-line backup.
pg_backup_stop ( [wait_for_archive boolean] ) → record ( lsn pg_lsn, labelfile text, spcmapfile text )
系统管理函数函数 · 系统管理函数
pg_basetype返回由类型 OID 标识的域的基础类型 OID。
Returns the OID of the base type of a domain identified by its type OID.
pg_basetype ( regtype ) → regtype
系统信息函数和操作符函数 · 系统信息函数和操作符
pg_blocking_pids返回一个数组,包含阻止指定进程 ID 对应的服务器进程获取锁的会话进程 ID;如果不存在这样的服务器进程,或该进程未被阻塞,则返回空数组。
Returns an array of the process ID(s) of the sessions that are blocking the server process with the specified process ID…函数 · 系统信息函数和操作符
pg_cancel_backend取消具有指定进程ID的后端进程的会话的当前查询。
Cancels the current query of the session whose backend process has the specified process ID.
pg_cancel_backend ( pid integer ) → boolean
系统管理函数函数 · 系统管理函数
pg_char_to_encoding将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。
Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables.
pg_char_to_encoding ( encoding…函数 · 系统信息函数和操作符
pg_clear_attribute_stats清除给定关系和属性的列级统计信息,就像该表是新创建的一样。
Clears column-level statistics for the given relation and attribute, as though the table was newly created.
pg_clear_attribute_stats ( schemaname text, relname …函数 · 系统管理函数
pg_clear_extended_stats清空扩展统计对象的数据,就像该对象是新建的一样。
Clears data of an extended statistics object, as though the object was newly-created.
pg_clear_extended_stats ( schemaname name, relname name, statistics_schemaname …函数 · 系统管理函数
pg_clear_relation_stats清除给定关系的表级统计信息,就像该表是新创建的一样。
Clears table-level statistics for the given relation, as though the table was newly created.
pg_clear_relation_stats ( schemaname text, relname text ) → void
系统管理函…函数 · 系统管理函数
pg_client_encoding返回当前客户端编码名称。
Returns current client encoding name.
pg_client_encoding ( ) → name
字符串函数和操作符函数 · 字符串函数和操作符
pg_collation_actual_version返回当前安装在操作系统中的该排序规则对象的实际版本。
Returns the actual version of the collation object as it is currently installed in the operating system.
pg_collation_actual_version ( oid ) → text
系统管理函数函数 · 系统管理函数
pg_collation_is_visible排序规则在搜索路径中可见吗?
Is collation visible in search path?
pg_collation_is_visible ( collation oid ) → boolean
系统信息函数和操作符函数 · 系统信息函数和操作符
pg_column_compression显示用于压缩单个变长值的压缩算法。
Shows the compression algorithm that was used to compress an individual variable-length value.
pg_column_compression ( "any" ) → text
系统管理函数函数 · 系统管理函数
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开