PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
常用条目12316
pg_switch_wal强制服务器切换到新的预写式日志文件,使当前文件可以归档(假设正在使用连续归档)。
Forces the server to switch to a new write-ahead log file, which allows the current file to be archived (assuming you are using continuous archiving)…函数 · 系统管理函数
pg_switch_xlog强制切换到新的预写式日志文件(默认仅限超级用户,但可以向其他用户授予EXECUTE权限以运行此函数)
Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function…函数 · 系统管理函数
pg_synapse_pgrxPostgreSQL原生代理循环运行时
pg synapse: Postgres-native agent-loop runtime
pgrx rust
pg_synapse_pgrx
AI 与向量AI 与向量 · 扩展目录
pg_sync_replication_slots将逻辑故障切换复制槽从主库同步到备库。
Synchronize the logical failover replication slots from the primary server to the standby server.
pg_sync_replication_slots () → void
系统管理函数函数 · 系统管理函数
pg_synthesize_wal生成不同大小的 PostgreSQL WAL 记录用于开发测试
Generate PostgreSQL WAL records of various sizes
development shared-preload testing wal
pg_synthesize_wal
功能特性功能特性 · 扩展目录
pg_sysdatetime提供 SQL Server 风格的高精度系统时间函数,主要用于旧版 Windows 上的 PostgreSQL。
High-precision SQL Server-style system datetime functions for PostgreSQL, mainly useful on older Windows builds.
pg_sysdatetime
兼容仿真兼容仿真 · 扩展目录
pg_sysloadpg_sysload:在 PostgreSQL 中读取 Linux 系统负载平均值。
Expose Linux system load averages from PostgreSQL
linux pgrx system-monitoring
pg_sysload
监控统计监控统计 · 扩展目录
pg_tapg_ta:将 TA-Lib 技术分析函数封装为 PostgreSQL 函数。
TA-Lib technical-analysis functions exposed as PostgreSQL functions
finance technical-analysis
pg_ta
函数与聚合函数与聚合 · 扩展目录
pg_table_bloat用于估算表膨胀的PostgreSQL扩展,无需pgstattuple
PostgreSQL extension that estimates table bloat from pg class + pg stats — no pgstattuple required
pg_table_bloat
管理运维管理运维 · 扩展目录
pg_table_is_visible表在搜索路径中可见吗?(这适用于所有类型的关系,包括视图、物化视图、索引、序列和外部表。
Is table visible in search path? (This works for all types of relations, including views, materialized views, indexes, sequences and foreign tabl…函数 · 系统信息函数和操作符
pg_table_range基于每个分区的数据范围在规划阶段裁剪分区,并支持非分区键列。
Planning-time partition pruning by per-partition data ranges, including non-key columns.
brin partitioning pgrx planner postgis
pg_table_range
分析与列存分析与列存 · 扩展目录
pg_table_size计算指定表所使用的磁盘空间,不包括索引(但包括其 TOAST 表(如有)、空闲空间映射和可见性映射)。
Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibili…函数 · 系统管理函数
pg_tables表
The view pg_tables provides access to useful information about each table in the database.
视图pg_tables提供了对数据库中每个表的有用信息的访问。
schemaname tablename tableowner tablespace hasindexes hasrules ha…系统视图 · 系统目录
pg_tables53.32. pg_tables
视图 pg_tables 提供了对数据库中每个表的有用信息的访问。表 53.32. pg_tables 列 列类型 描述 schemaname name(引用 pg_namespace.nspname) 包含表的模式名称 tablename name(引用 pg_class.relname) 表的名称 tableowner name(引用 pg…pg_tables
pg_tablespace本数据库集簇内的表空间
tablespaces within this database cluster
目录pg_tablespace存储关于可用表空间的信息。表可以被放置在特定表空间中以实现磁盘布局的管理。 与大部分其他系统目录不同,pg_tablespace在整个集簇的所有数据库之间共享:在每一个集簇中只有一个pg_tablespace的拷贝,而不是每个数据库一份。
oi…系统目录表 · 系统目录
pg_tablespace52.56. pg_tablespace
目录 pg_tablespace 存储关于可用表空间的信息。表可以被放置在特定表空间中以实现磁盘布局的管理。与大部分其他系统目录不同,pg_tablespace 在整个集簇的所有数据库之间共享:在每一个集簇中只有一个 pg_tablespace 的拷贝,而不是每个数据库一份。表 52.56. pg_tablespace 列 列类型 描述…pg_tablespace
pg_tablespace_databases返回在指定表空间中存储了对象的数据库 OID 集合。
Returns the set of OIDs of databases that have objects stored in the specified tablespace.
pg_tablespace_databases ( tablespace oid ) → setof oid
系统信息函数和操作符函数 · 系统信息函数和操作符
pg_tablespace_location返回表空间所在的文件系统路径。
Returns the file system path that this tablespace is located in.
pg_tablespace_location ( tablespace oid ) → text
系统信息函数和操作符函数 · 系统信息函数和操作符
pg_tablespace_size计算具有指定名称或OID的表空间中使用的总磁盘空间。
Computes the total disk space used in the tablespace with the specified name or OID.
pg_tablespace_size ( name ) → bigint
pg_tablespace_size ( oid ) → bigint
系统管理函…函数 · 系统管理函数
pg_tamagotchi为你的Postgres数据库打造的虚拟宠物
A pet for your postgres db
postgres postgresql-extension tamagotchi
pg_tamagotchi
功能特性功能特性 · 扩展目录
pg_tamperlogpg_tamperlog:基于哈希链的防篡改追加式审计日志扩展。
Tamper-evident append-only audit logging with hash chaining
pg_tamperlog
安全安全 · 扩展目录
pg_tamperlog_rustpg_tamperlog 的 Rust/pgrx 辅助扩展,用于加速 SHA-256 哈希链计算。
Rust pgrx helper extension for pg_tamperlog fast SHA-256 hash-chain calculations.
pgrx
pg_tamperlog
安全安全 · 扩展目录
pg_task在特定时间点在后台执行SQL命令
execute any sql command at any specific time at background
pg_task
时序与时态时序与时态 · 扩展目录
pg_tblspc包含指向表空间的符号链接的子目录
PGDATA 路径
$PGDATA/pg_tblspc
相对路径 pg_tblspc存储结构 · PGDATA 路径
pg_tdePercona 透明加密存储引擎
Percona pg_tde access method
fork pgtde
pg_tde
安全安全 · 扩展目录
pg_temporal为 PostgreSQL 增加 Temporal ZonedDateTime 时间值支持的 pgrx 扩展。
PostgreSQL extension adding Temporal ZonedDateTime support.
pgrx
pg_temporal
数据类型数据类型 · 扩展目录
pg_terminate_backend终止具有指定进程ID的后端进程的会话。
Terminates the session whose backend process has the specified process ID.
pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean
系统管理函数函数 · 系统管理函数
pg_test_fsyncpg_test_fsync — 为 PostgreSQL 确定最快的 wal_sync_method
服务端程序
pg_test_fsync [ option ...]
手册中的可执行程序 pg_test_fsync
程序版本 10.23
参考清单 服务端程序
选项定义组 4
手册中的选项
指定用于写入测试数据的文件名。该文件应位于 pg_wal 目录所在或将要放置的同一文件…命令行工具 · 服务端程序
pg_test_fsyncpg_test_fsync pg_test_fsync — 为 PostgreSQL 确定最快的 wal_sync_method
大纲 pg_test_fsync [option...]pg_test_fsync
pg_test_timingpg_test_timing — 测量计时开销
服务端程序
pg_test_timing [ option ...]
手册中的可执行程序 pg_test_timing
程序版本 10.23
参考清单 服务端程序
选项定义组 3
手册中的选项
指定测试持续时间,以秒为单位。持续时间越长,精度会略有提高,也更可能发现系统时钟倒退的问题。默认测试持续时间为 3 秒。 -d dura…命令行工具 · 服务端程序
pg_test_timingpg_test_timing pg_test_timing — 测量计时开销大纲 pg_test_timing [option...]pg_test_timing
pg_testgen为 PostgreSQL 开发生成随机整数、字符串及批量测试数据行
Generate random integers, strings, and test-data rows for PostgreSQL development
random test-data testing
pg_testgen
函数与聚合函数与聚合 · 扩展目录
pg_text_semverPostgreSQL 语义版本域类型与比较运算符
Semantic version domain and comparison operators for PostgreSQL
pg_text_semver
数据类型数据类型 · 扩展目录
pg_textparserpg_textparser:全文搜索相关 PostgreSQL 扩展;上游说明为“Text search parser”。
Text search parser
pg_textparser
全文检索全文检索 · 扩展目录
pg_textsearch带有BM25排序的全文搜索扩展
Full-text search with BM25 ranking
pg_textsearch
全文检索全文检索 · 扩展目录
pg_themispg_themis:使用 Themis 加密库为 PostgreSQL 提供加密和解密函数。
PostgreSQL encryption and decryption functions backed by the Themis cryptographic library.
cryptography encryption themis
pg_themis
安全安全 · 扩展目录
pg_thrift在 PostgreSQL 中编码、解码并查询 Apache Thrift 二进制与紧凑协议数据。
Encode, decode, and query Apache Thrift binary and compact protocol values in PostgreSQL.
binary-protocol serialization thrift
pg_thrift
数据类型数据类型 · 扩展目录
pg_thud扩展 pgtap 的数据库单元测试框架,提供脚手架与测试数据辅助功能。
Framework extending pgtap with scaffolding and test-data helpers for database unit tests.
pg_thud
功能特性功能特性 · 扩展目录
pg_tier通过 parquet_s3_fdw 将 PostgreSQL 表数据分层迁移到外部 S3 存储。
Tier PostgreSQL table data to external S3 storage through parquet_s3_fdw.
fdw pgrx s3 tembo tiering
pg_tier
分析与列存分析与列存 · 扩展目录
pg_tigerbeetle实验性Zig扩展,用于从PostgreSQL查询TigerBeetle账户信息。
Experimental Zig extension for looking up TigerBeetle accounts from PostgreSQL.
pg_tigerbeetle
实用工具实用工具 · 扩展目录
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开