FUNCTION系统管理函数
pg_stop_backup
完成在线备份。
Finishes performing an exclusive or non-exclusive on-line backup.
系统管理函数 引入 9.0(基线) 于 15 移除 2 条签名 3 次签名变更
- 分组
- 系统管理函数
- 签名数
- 2 条
- 引入版本
- 9.0(基线)
- 状态
- 于 15 移除
- 签名变更
- 3 次
- 本版来源
- 本站译文
版本轨迹
相对 PostgreSQL 13 无变化。
签名
PostgreSQL 14 里 pg_stop_backup 的 2 条签名,按上游手册顺序排列。参数名用斜体,类型用弱化色, 之后是返回类型。说明取自本站手册译文:标「沿用」的借用了另一版的译文,标「EN」的本站暂无译文、按英文原文显示。
-
pg_stop_backup(exclusiveboolean[,wait_for_archiveboolean] ) →setof record(lsnpg_lsn,labelfiletext,spcmapfiletext)ENFinishes performing an exclusive or non-exclusive on-line backup. Theexclusiveparameter must match the previouspg_start_backupcall. In an exclusive backup,pg_stop_backupremoves the backup label file and, if it exists, the tablespace map file created bypg_start_backup. In a non-exclusive backup, the desired contents of these files are returned as part of the result of the function, and should be written to files in the backup area (not in the data directory). -
pg_stop_backup() →pg_lsnENFinishes performing an exclusive on-line backup. This simplified version is equivalent topg_stop_backup(true, true), except that it only returns thepg_lsnresult.
演化历史
相邻两个大版本之间的差异,新的在前。版本号链到该版的签名。
-
PostgreSQL 15 ← 14 移除此函数
该版起不再存在
-
PostgreSQL 13 ← 12 手册重排
这一跳手册重排了函数表的写法,签名文本整体改写,只记函数的增删,不逐条比较签名。
-
PostgreSQL 10 ← 9.6 签名变更
pg_stop_backup ( exclusive boolean [, wait_for_archive boolean ] ) → setof recordpg_stop_backup ( exclusive boolean ) → setof record -
PostgreSQL 9.6 ← 9.5 签名变更
pg_stop_backup ( exclusive boolean ) → setof record说明更新 -
PostgreSQL 9.4 ← 9.3 签名变更
pg_stop_backup ( ) → pg_lsnpg_stop_backup ( ) → text -
PostgreSQL 9.1 ← 9.0 说明更新
说明更新
签名矩阵
每条签名在给出了签名的 12 个版本里的存在情况;方格指向该版的签名。只在正文里提到此函数、没有给出签名的版本不列进来,上面的版本轨迹里仍然有它们。签名文本在 PostgreSQL 13 前后写法不同,跨越那一跳的同一条签名会显示成两行。
存在 不存在
| 签名 | 9.0 | 9.1 | 9.2 | 9.3 | 9.4 | 9.5 | 9.6 | 10 | 11 | 12 | 13 | 14 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
pg_stop_backup ( ) → text |
存在 | 存在 | 存在 | 存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 |
pg_stop_backup ( ) → pg_lsn |
不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 不存在 | 不存在 |
pg_stop_backup ( exclusive boolean ) → setof record |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 |
pg_stop_backup ( exclusive boolean [, wait_for_archive boolean ] ) → setof record |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 不存在 | 不存在 |
pg_stop_backup ( exclusive boolean [, wait_for_archive boolean ] ) → setof record ( lsn pg_lsn, labelfile text, spcmapfile text ) |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 |
pg_stop_backup () → pg_lsn |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 |
同组函数
| 函数 | 签名 | 主签名 | 版本变动 | 最近变更 |
|---|---|---|---|---|
brin_desummarize_range |
1 | brin_desummarize_range ( index regclass, blockNumber bigint ) → void |
— | |
| 如果存在涵盖指定表块的页面范围摘要,则删除对应的 BRIN 索引元组。 | 现存 | |||
brin_summarize_new_values |
1 | brin_summarize_new_values ( index regclass ) → integer |
9.61 次 | |
| 扫描指定的BRIN索引以查找基表中当前尚未生成索引摘要的页面范围; 对于任何这样的范围,它都通过扫描这些表页来创建一个新的摘要索引元组。 | 现存 | |||
brin_summarize_range |
1 | brin_summarize_range ( index regclass, blockNumber bigint ) → integer |
— | |
| 对覆盖给定块的页面范围执行摘要(如果尚未摘要)。 | 现存 | |||
current_setting基线 |
1 | current_setting ( setting_name text [, missing_ok boolean ] ) → text |
9.61 次 | |
| 返回设置的setting_name的当前值。 | 现存 | |||
gin_clean_pending_list |
1 | gin_clean_pending_list ( index regclass ) → bigint |
— | |
| 清理指定GIN索引的“pending”列表,通过移除里面的条目,以大批的方式,到主要的GIN数据结构。 | 现存 | |||
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_advisory_xact_lock |
2 | pg_advisory_xact_lock ( key bigint ) → void |
— | |
| 获取一个排他的事务级咨询锁,如有必要则等待。 | 现存 | |||
pg_advisory_xact_lock_shared |
2 | pg_advisory_xact_lock_shared ( key bigint ) → void |
— | |
| 获取一个共享的事务级咨询锁,如有必要则等待。 | 现存 | |||
pg_backup_start |
1 | pg_backup_start ( label text [, fast boolean ] ) → pg_lsn |
— | |
| 准备服务器开始在线备份。 | 现存 | |||
pg_backup_start_time |
1 | pg_backup_start_time () → timestamp with time zone |
— | |
| 如果正在进行在线排他备份,返回其开始时间,否则返回 NULL。 | 于 15 移除 | |||
pg_backup_stop |
1 | pg_backup_stop ( [wait_for_archive boolean ] ) → record ( lsn pg_lsn, labelfile text, spcmapfile text ) |
— | |
| 完成在线备份。 | 现存 | |||
pg_cancel_backend基线 |
1 | pg_cancel_backend ( pid integer ) → boolean |
— | |
| 取消具有指定进程ID的后端进程的会话的当前查询。 | 现存 | |||
pg_clear_attribute_stats |
1 | pg_clear_attribute_stats ( schemaname text, relname text, attname text, inherited boolean ) → void |
— | |
| 清除给定关系和属性的列级统计信息,就像该表是新创建的一样。 | 现存 | |||
pg_clear_extended_stats |
1 | pg_clear_extended_stats ( schemaname name, relname name, statistics_schemaname name, statistics_name name, inherited boolean ) → void |
— | |
| 清空扩展统计对象的数据,就像该对象是新建的一样。 | 现存 | |||
pg_clear_relation_stats |
1 | pg_clear_relation_stats ( schemaname text, relname text ) → void |
— | |
| 清除给定关系的表级统计信息,就像该表是新创建的一样。 | 现存 | |||
pg_collation_actual_version |
1 | pg_collation_actual_version ( oid ) → text |
— | |
| 返回当前安装在操作系统中的该排序规则对象的实际版本。 | 现存 | |||
pg_column_compression |
1 | pg_column_compression ( "any" ) → text |
— | |
| 显示用于压缩单个变长值的压缩算法。 | 现存 | |||
pg_column_size基线 |
1 | pg_column_size ( "any" ) → integer |
— | |
| 显示用于存储任何单个数据值的字节数。 | 现存 | |||
pg_column_toast_chunk_id |
1 | pg_column_toast_chunk_id ( "any" ) → oid |
— | |
| 显示磁盘上已 TOAST 化值的chunk_id。 | 现存 | |||
pg_copy_logical_replication_slot |
1 | pg_copy_logical_replication_slot ( src_slot_name name, dst_slot_name name [, temporary boolean [, plugin name ]] ) → record ( slot_name name, lsn pg_lsn ) |
— | |
| 复制一个名为src_slot_name的现有逻辑复制槽到一个名为dst_slot_name的逻辑复制槽,选择性的改变输出插件和持久性。 | 现存 | |||
pg_copy_physical_replication_slot |
1 | pg_copy_physical_replication_slot ( src_slot_name name, dst_slot_name name [, temporary boolean ] ) → record ( slot_name name, lsn pg_lsn ) |
— | |
| 将一个名为src_slot_name的现有物理复制槽复制到一个名为dst_slot_name的物理复制槽。 | 现存 | |||
pg_create_logical_replication_slot |
1 | pg_create_logical_replication_slot ( slot_name name, plugin name [, temporary boolean, twophase boolean, failover boolean ] ) → record ( slot_name name, lsn pg_lsn ) |
173 次 | |
| 创建一个名为slot_name的新逻辑(解码)复制插槽,使用输出插件plugin。 | 现存 | |||
pg_create_physical_replication_slot |
1 | pg_create_physical_replication_slot ( slot_name name [, immediately_reserve boolean, temporary boolean ] ) → record ( slot_name name, lsn pg_lsn ) |
102 次 | |
| 创建一个新的名为slot_name的物理复制槽。 | 现存 | |||
pg_create_restore_point |
1 | pg_create_restore_point ( name text ) → pg_lsn |
9.41 次 | |
| 在预写式日志中创建一个命名标记记录,稍后可以将其用作恢复目标,并返回相应的预写日志位置。 | 现存 | |||
pg_current_wal_flush_lsn |
1 | pg_current_wal_flush_lsn () → pg_lsn |
— | |
| 返回当前预写式日志刷新位置(参见下面的说明)。 | 现存 | |||
pg_current_wal_insert_lsn |
1 | pg_current_wal_insert_lsn () → pg_lsn |
— | |
| 返回当前预式日志插入位置(参见下面的说明)。 | 现存 | |||
pg_current_wal_lsn |
1 | pg_current_wal_lsn () → pg_lsn |
— | |
| 返回当前预写式日志写位置(参见下面的说明)。 | 现存 | |||
pg_current_xlog_flush_location |
1 | pg_current_xlog_flush_location ( ) → pg_lsn |
— | |
| Get current transaction log flush location | 于 10 移除 | |||
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_collation_actual_version |
1 | pg_database_collation_actual_version ( oid ) → text |
— | |
| 返回数据库当前在操作系统中安装的排序规则的实际版本。 | 现存 | |||
pg_database_size基线 |
2 | pg_database_size ( name ) → bigint |
— | |
| 计算具有指定名称或OID的数据库使用的总磁盘空间。 | 现存 | |||
pg_disable_data_checksums |
1 | pg_disable_data_checksums () → void |
— | |
| 为集簇禁用数据校验和的计算与验证。 | 现存 | |||
pg_drop_replication_slot |
1 | pg_drop_replication_slot ( slot_name name ) → void |
— | |
| 丢弃名为slot_name的物理或逻辑复制槽。 | 现存 | |||
pg_enable_data_checksums |
1 | pg_enable_data_checksums ( [cost_delay int, cost_limit int] ) → void |
— | |
| 启动为集簇启用数据校验和的过程。 | 现存 | |||
pg_export_snapshot |
1 | pg_export_snapshot () → text |
— | |
| 保存事务的当前快照并返回text字符串以标识该快照。 | 现存 | |||
pg_filenode_relation |
1 | pg_filenode_relation ( tablespace oid, filenode oid ) → regclass |
— | |
| 返回一个给定表空间OID和存储它的文件节点的关系的OID。 | 现存 | |||
pg_get_wal_replay_pause_state |
1 | pg_get_wal_replay_pause_state () → text |
— | |
| 返回恢复暂停状态。 | 现存 | |||
pg_get_wal_resource_managers |
1 | pg_get_wal_resource_managers () → setof record ( rm_id integer, rm_name text, rm_builtin boolean ) |
— | |
| 返回系统中当前加载的 WAL 资源管理器。 | 现存 | |||
pg_import_system_collations |
1 | pg_import_system_collations ( schema regnamespace ) → integer |
— | |
| 基于在操作系统中找到的所有区域环境(locales),加入排序规则到系统目录pg_collation中。 | 现存 | |||
pg_indexes_size基线 |
1 | pg_indexes_size ( regclass ) → bigint |
— | |
| 计算附加到指定表的索引所使用的总磁盘空间。 | 现存 | |||
pg_is_in_backup |
1 | pg_is_in_backup () → boolean |
— | |
| 将预写式日志位置转换为保持该位置的WAL文件的名称。 | 于 15 移除 | |||
pg_is_in_recovery基线 |
1 | pg_is_in_recovery () → boolean |
— | |
| 如果恢复仍在进行则返回真。 | 现存 | |||
pg_is_wal_replay_paused |
1 | pg_is_wal_replay_paused () → boolean |
— | |
| 如果请求了恢复暂停了则返回真。 | 现存 | |||
pg_is_xlog_replay_paused |
1 | pg_is_xlog_replay_paused ( ) → bool |
— | |
| True if recovery is paused. | 于 10 移除 | |||
pg_last_wal_receive_lsn |
1 | pg_last_wal_receive_lsn () → pg_lsn |
— | |
| 返回已接收并通过流复制同步到磁盘的最后一个预写式日志位置。 | 现存 | |||
pg_last_wal_replay_lsn |
1 | pg_last_wal_replay_lsn () → pg_lsn |
— | |
| 返回恢复期间重新播放的最后一个预写式日志位置。 | 现存 | |||
pg_last_xact_replay_timestamp |
1 | pg_last_xact_replay_timestamp () → timestamp with time zone |
— | |
| 返回恢复期间重放的最后一个事务的时间戳。 | 现存 | |||
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_log_backend_memory_contexts |
1 | pg_log_backend_memory_contexts ( pid integer ) → boolean |
— | |
| 请求记录具有指定进程ID的后端的内存上下文。 | 现存 | |||
pg_log_standby_snapshot |
1 | pg_log_standby_snapshot () → pg_lsn |
— | |
| Take a snapshot of running transactions and write it to WAL, without having to wait for bgwriter or checkpointer to log one. | 现存 | |||
pg_logical_emit_message |
2 | pg_logical_emit_message ( transactional boolean, prefix text, content text [, flush boolean DEFAULT false] ) → pg_lsn |
171 次 | |
| 发出逻辑解码消息。 | 现存 | |||
pg_logical_slot_get_binary_changes |
1 | pg_logical_slot_get_binary_changes ( slot_name name, upto_lsn pg_lsn, upto_nchanges integer, VARIADIC options text[] ) → setof record ( lsn pg_lsn, xid xid, data bytea ) |
101 次 | |
| 行为就像pg_logical_slot_get_changes()函数, 不过改变会以bytea返回。 | 现存 | |||
pg_logical_slot_get_changes |
1 | pg_logical_slot_get_changes ( slot_name name, upto_lsn pg_lsn, upto_nchanges integer, VARIADIC options text[] ) → setof record ( lsn pg_lsn, xid xid, data text ) |
101 次 | |
| 返回槽slot_name中的改变,从最后一次使用更改的点开始。 | 现存 | |||
pg_logical_slot_peek_binary_changes |
1 | pg_logical_slot_peek_binary_changes ( slot_name name, upto_lsn pg_lsn, upto_nchanges integer, VARIADIC options text[] ) → setof record ( lsn pg_lsn, xid xid, data bytea ) |
101 次 | |
| 行为就像pg_logical_slot_peek_changes()函数,不过改变会以bytea返回。 | 现存 | |||
pg_logical_slot_peek_changes |
1 | pg_logical_slot_peek_changes ( slot_name name, upto_lsn pg_lsn, upto_nchanges integer, VARIADIC options text[] ) → setof record ( lsn pg_lsn, xid xid, data text ) |
101 次 | |
| 行为就像pg_logical_slot_get_changes()函数, 不过改变不会被消费, 即在未来的调用中还会返回这些改变。 | 现存 | |||
pg_ls_archive_statusdir |
1 | pg_ls_archive_statusdir () → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回服务器的WAL归档状态目录(pg_wal/archive_status)中的每个普通文件的名称、大小、和最后修改时间(mtime)。 | 现存 | |||
pg_ls_dir基线 |
1 | pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text |
9.51 次 | |
| 返回指定目录中所有文件(和目录以及其他指定文件)的名称。 | 现存 | |||
pg_ls_logdir |
1 | pg_ls_logdir () → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回服务器日志目录中每个普通文件的名称、大小和最后修改时间(mtime)。 | 现存 | |||
pg_ls_logicalmapdir |
1 | pg_ls_logicalmapdir () → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回服务器的pg_logical/mappings目录中每个普通文件的名称、大小和最后修改时间(mtime)。 | 现存 | |||
pg_ls_logicalsnapdir |
1 | pg_ls_logicalsnapdir () → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回服务器的pg_logical/snapshots目录中每个普通文件的名称、大小和最后修改时间(mtime)。 | 现存 | |||
pg_ls_replslotdir |
1 | pg_ls_replslotdir ( slot_name text ) → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回服务器的pg_replslot/slot_name目录中每个普通文件的名称、大小和最后修改时间(mtime), 其中slot_name是作为函数输入提供的复制槽的名称。 | 现存 | |||
pg_ls_summariesdir |
1 | pg_ls_summariesdir () → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回服务器的 WAL 摘要目录(pg_wal/summaries)中每个普通文件的名称、大小和最后修改时间(mtime)。 | 现存 | |||
pg_ls_tmpdir |
1 | pg_ls_tmpdir ( [ tablespace oid ] ) → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回针对指定tablespace的临时文件目录中的每个普通文件的名称、大小、和最后修改时间(mtime)。 | 现存 | |||
pg_ls_waldir |
1 | pg_ls_waldir () → setof record ( name text, size bigint, modification timestamp with time zone ) |
— | |
| 返回服务器的预写式日志(WAL)目录中每个普通文件的名称、大小和最后修改时间(mtime)。 | 现存 | |||
pg_partition_ancestors |
1 | pg_partition_ancestors ( regclass ) → setof regclass |
— | |
| 列出给定分区的祖先关系,包括关系本身。 | 现存 | |||
pg_partition_root |
1 | pg_partition_root ( regclass ) → regclass |
— | |
| 返回给定关系所属的分区树的最顶级父节点。 | 现存 | |||
pg_partition_tree |
1 | pg_partition_tree ( regclass ) → setof record ( relid regclass, parentrelid regclass, isleaf boolean, level integer ) |
— | |
| 列出给定分区表或分区索引的分区树中的表或索引,每行对应一个分区。 | 现存 | |||
pg_promote |
1 | pg_promote ( wait boolean DEFAULT true, wait_seconds integer DEFAULT 60 ) → boolean |
— | |
| 将备库提升为主库状态。 | 现存 | |||
pg_read_binary_file |
1 | pg_read_binary_file ( filename text [, offset bigint, length bigint ] [, missing_ok boolean ] ) → bytea |
162 次 | |
| 返回文件的全部或部分。 | 现存 | |||
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_replication_origin_advance |
1 | pg_replication_origin_advance ( node_name text, lsn pg_lsn ) → void |
101 次 | |
| 将给定节点的复制进度设置为给定的位置。 | 现存 | |||
pg_replication_origin_create |
1 | pg_replication_origin_create ( node_name text ) → oid |
— | |
| 用给定的外部名称创建一个复制源,并且返回分配给它的内部 ID。 | 现存 | |||
pg_replication_origin_drop |
1 | pg_replication_origin_drop ( node_name text ) → void |
— | |
| 删除一个以前创建的复制源,包括任何相关的重放进度。 | 现存 | |||
pg_replication_origin_oid |
1 | pg_replication_origin_oid ( node_name text ) → oid |
— | |
| 通过名称查找复制源并返回其内部ID。 | 现存 | |||
pg_replication_origin_progress |
1 | pg_replication_origin_progress ( node_name text, flush boolean ) → pg_lsn |
— | |
| 返回给定复制元的重放位置。 | 现存 | |||
pg_replication_origin_session_is_setup |
1 | pg_replication_origin_session_is_setup () → boolean |
— | |
| 如果在当前会话中选择了复制源则返回真。 | 现存 | |||
pg_replication_origin_session_progress |
1 | pg_replication_origin_session_progress ( flush boolean ) → pg_lsn |
— | |
| 返回当前会话中选择的复制源的重放位置。 | 现存 | |||
pg_replication_origin_session_reset |
1 | pg_replication_origin_session_reset () → void |
— | |
| 取消pg_replication_origin_session_setup()的效果。 | 现存 | |||
pg_replication_origin_session_setup |
1 | pg_replication_origin_session_setup ( node_name text [, pid integer DEFAULT 0] ) → void |
191 次 | |
| 将当前会话标记为从给定的复制源重放,从而允许跟踪重放进度。 | 现存 | |||
pg_replication_origin_xact_reset |
1 | pg_replication_origin_xact_reset () → void |
9.61 次 | |
| 取消pg_replication_origin_xact_setup()的效果。 | 现存 | |||
pg_replication_origin_xact_setup |
1 | pg_replication_origin_xact_setup ( origin_lsn pg_lsn, origin_timestamp timestamp with time zone ) → void |
— | |
| 将当前事务标记为重放在给定LSN和时间戳上提交的事务。 | 现存 | |||
pg_replication_slot_advance |
1 | pg_replication_slot_advance ( slot_name name, upto_lsn pg_lsn ) → record ( slot_name name, end_lsn pg_lsn ) |
— | |
| 将复制槽的当前确认的位置提前到名为slot_name的复制槽的当前确认位置。 | 现存 | |||
pg_restore_attribute_stats |
1 | pg_restore_attribute_stats ( VARIADIC kwargs "any" ) → boolean |
— | |
| 创建或更新列级统计信息。 | 现存 | |||
pg_restore_extended_stats |
1 | pg_restore_extended_stats ( VARIADIC kwargs "any" ) → boolean |
— | |
| 创建或更新统计对象的统计信息。 | 现存 | |||
pg_restore_relation_stats |
1 | pg_restore_relation_stats ( VARIADIC kwargs "any" ) → boolean |
— | |
| 更新表级统计信息。 | 现存 | |||
pg_rotate_logfile基线 |
1 | pg_rotate_logfile () → boolean |
— | |
| 通知日志文件管理器立即切换到一个新的输出文件。 | 现存 | |||
pg_size_bytes |
1 | pg_size_bytes ( text ) → bigint |
— | |
| 将人可阅读的格式的大小(由pg_size_pretty返回)转换为字节。 | 现存 | |||
pg_size_pretty基线 |
2 | pg_size_pretty ( bigint ) → text |
9.21 次 | |
| 将字节大小转换为更易于人类阅读的格式,带有大小单位(字节,kB,MB,GB,TB或PB)。 | 现存 | |||
pg_split_walfile_name |
1 | pg_split_walfile_name ( file_name text ) → record ( segment_number numeric, timeline_id bigint ) |
— | |
| 从 WAL 文件名中提取序列号和时间线 ID。 | 现存 | |||
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_wal |
1 | pg_switch_wal () → pg_lsn |
— | |
| 强制服务器切换到一个新的预写式日志文件,这允许对当前文件进行归档(假设你正在使用连续归档)。 | 现存 | |||
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_sync_replication_slots |
1 | pg_sync_replication_slots () → void |
— | |
| 将逻辑故障切换复制槽从主库同步到备库。 | 现存 | |||
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_try_advisory_xact_lock |
2 | pg_try_advisory_xact_lock ( key bigint ) → boolean |
— | |
| 获取一个排他的事务级咨询锁,如果适用。 | 现存 | |||
pg_try_advisory_xact_lock_shared |
2 | pg_try_advisory_xact_lock_shared ( key bigint ) → boolean |
— | |
| 获取一个共享的事务级咨询锁,如果适用。 | 现存 | |||
pg_wal_lsn_diff |
1 | pg_wal_lsn_diff ( lsn1 pg_lsn, lsn2 pg_lsn ) → numeric |
— | |
| 计算两个预写式日志位置之间的字节(lsn1 - lsn2)差异。 | 现存 | |||
pg_wal_replay_pause |
1 | pg_wal_replay_pause () → void |
— | |
| 请求暂停恢复。 | 现存 | |||
pg_wal_replay_resume |
1 | pg_wal_replay_resume () → void |
— | |
| 如果暂停了,则重新启动恢复。 | 现存 | |||
pg_walfile_name |
1 | pg_walfile_name ( lsn pg_lsn ) → text |
— | |
| 将预写式日志位置转换为保持该位置的WAL文件的名称。 | 现存 | |||
pg_walfile_name_offset |
1 | pg_walfile_name_offset ( lsn pg_lsn ) → record ( file_name text, file_offset integer ) |
— | |
| 将预写式日志位置转换为WAL文件名和该文件中的字节偏移量。 | 现存 | |||
pg_xlog_location_diff |
1 | pg_xlog_location_diff ( location pg_lsn, location pg_lsn ) → numeric |
9.41 次 | |
| Calculate the difference between two transaction log locations | 于 10 移除 | |||
pg_xlog_replay_pause |
1 | pg_xlog_replay_pause ( ) → void |
— | |
| Pauses recovery immediately (restricted to superusers by default, but other users can be granted EXECUTE to run the function). | 于 10 移除 | |||
pg_xlog_replay_resume |
1 | pg_xlog_replay_resume ( ) → void |
— | |
| Restarts recovery if it was paused (restricted to superusers by default, but other users can be granted EXECUTE to run the function). | 于 10 移除 | |||
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,并返回该值。 | 现存 | |||