PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
常用条目12316
pg_qualstats收集有关 quals 的统计信息的扩展
An extension collecting statistics about quals
pg_qualstats
监控统计监控统计 · 扩展目录
pg_query_rewrite使用 ProcessUtility hook 重写 SQL 语句
Rewrite SQL statements with a PostgreSQL ProcessUtility hook
pg_query_rewrite
管理运维管理运维 · 扩展目录
pg_query_rules基于PostgreSQL的查询规则代理SQL
ProxySQL Query Rules but for PostgreSQL
pg_query_rules
管理运维管理运维 · 扩展目录
pg_query_settings根据查询ID动态设置查询参数的模块
Module that dynamically set queries parameters based on their queryid
pg_query_settings
管理运维管理运维 · 扩展目录
pg_query_state监控正在执行的 PostgreSQL 查询并输出类似 EXPLAIN ANALYZE 的实时进度与计划状态。
Tool for query progress monitoring in PostgreSQL
monitoring progress query-plan runtime-explain
pg_query_state
监控统计监控统计 · 扩展目录
pg_query_stats轻量级共享内存收集器,用于收集每个查询的执行统计信息
Lightweight shared-memory collector for per-query execution statistics.
pg_query_stats
监控统计监控统计 · 扩展目录
pg_queryid为 PostgreSQL 计算可配置的外部查询指纹
Compute configurable external query fingerprints for PostgreSQL
fingerprint queryid statistics
pg_queryid
监控统计监控统计 · 扩展目录
pg_querylog在共享内存中捕获当前及最近完成的后端查询,供 SQL 检查。
Captures current and recently completed backend queries in shared memory for SQL inspection.
observability query-logging
pg_querylog
监控统计监控统计 · 扩展目录
pg_quota通过后台工作进程实施按角色统计的软磁盘空间配额
Enforce soft per-role disk-space quotas with background workers
background-worker disk-quota resource-control
pg_quota
管理运维管理运维 · 扩展目录
pg_rand_ext生成PostgreSQL随机值的功能
Functions that generate random values for PostgreSQL
extension pgbench postgresql random
pg_rand_ext
函数与聚合函数与聚合 · 扩展目录
pg_random_string使用 C 函数生成指定长度的字母数字随机字符串。
Generates an alphanumeric string of a requested length with a C function.
random-data
pg_random_string
函数与聚合函数与聚合 · 扩展目录
pg_range范围类型的信息
information about range types
目录pg_range存储关于范围类型的信息。它是类型在pg_type中的项的补充。
rngtypid rngsubtype rngmultitypid rngcollation rngsubopc rngconstruct2 rngconstruct3 rngmltconstruct0 rngmltco…系统目录表 · 系统目录
pg_range52.43. pg_range
目录 pg_range 存储关于范围类型的信息。它是类型在 pg_type 中的项的补充。表 52.43. pg_range 列 列类型 描述 rngtypid oid(引用 pg_type.oid) 范围类型的 OID rngsubtype oid(引用 pg_type.oid) 该范围类型的元素类型(子类型)的 OID rngmultityp…pg_range
pg_rational使用BIGINT表示的有理数数据类型
bigint fractions
pg_rational
数据类型数据类型 · 扩展目录
pg_reactive通过 LISTEN/NOTIFY 提供 SQL 实时查询订阅与结果增量
Live SQL query subscriptions with result deltas over LISTEN/NOTIFY
live-queries notifications cdc
pg_reactive
功能特性功能特性 · 扩展目录
pg_read_all_data提供所有表、视图和序列的读取权限以及模式使用权限,但不绕过行级安全策略。
读取全部数据
数据访问
读取所有数据(表、视图、序列),其效果就像对这些对象拥有 SELECT 权限并对所有模式拥有 USAGE 权限一样,即使没有被显式授予。该角色没有设置角色属性 BYPASSRLS。如果正在使用 RLS,管理员可能希望对被 GRANT 此角色的角色设置 BYPASSRLS。
本版名…预定义角色 · 数据访问
pg_read_all_settings允许读取所有配置变量,包括通常仅对超级用户可见的变量。
读取全部配置
监控与统计
读取所有配置变量,即使是那些通常仅对超级用户可见的变量。
本版名称 pg_read_all_settings
手册称谓 默认角色
作用与权限边界
pg_monitor、 pg_read_all_settings、 pg_read_all_stats 和 pg_stat_scan_tables 角…预定义角色 · 监控与统计
pg_read_all_stats允许读取所有 pg_stat_* 视图及通常受限的统计信息。
读取全部统计
监控与统计
读取所有 pg_stat_* 视图,并使用各种与统计信息相关的扩展,包括通常仅对超级用户可见的内容。
本版名称 pg_read_all_stats
手册称谓 默认角色
作用与权限边界
pg_monitor、 pg_read_all_settings、 pg_read_all_stats 和…预定义角色 · 监控与统计
pg_read_binary_file返回文件的全部或部分。
Returns all or part of a file.
pg_read_binary_file ( filename text [, offset bigint, length bigint] [, missing_ok boolean] ) → bytea
系统管理函数函数 · 系统管理函数
pg_read_file返回一个文本文件的全部或部分,从给定的字节offset开始,最多返回length字节(如果先到达文件末尾,则返回更少)。
Returns all or part of a text file, starting at the given byte offset, returning at most length bytes (less if the end of file is…函数 · 系统管理函数
pg_read_server_files允许读取数据库服务器进程可访问的文件。
读取服务器文件
服务器文件与程序
允许使用COPY和其他文件访问函数,从服务器上数据库可访问的任何位置读取文件。
本版名称 pg_read_server_files
手册称谓 默认角色
作用与权限边界
pg_read_server_files、 pg_write_server_files 和 pg_execute_server_prog…预定义角色 · 服务器文件与程序
pg_readme根据 PostgreSQL COMMENT 对象生成 Markdown README
Generate a Markdown README from PostgreSQL COMMENT objects
documentation markdown meta plpgsql function functions
pg_readme
实用工具实用工具 · 扩展目录
pg_readme_test_extension用于测试 pg_readme 文档生成的夹具扩展
Fixture extension used to test pg_readme document generation
documentation markdown testing fixture plpgsql
pg_readme
实用工具实用工具 · 扩展目录
pg_readonly将集群设置为只读
cluster database read only
pg_readonly
管理运维管理运维 · 扩展目录
pg_recall_guard测量 ANN 索引召回率并检测相对认可基线的漂移
Measure ANN index recall and detect drift from an approved baseline
vector ann recall monitoring drift baseline
pg_recall_guard
AI 与向量AI 与向量 · 扩展目录
pg_receivewalpg_receivewal — 从 PostgreSQL 服务器流式接收预写式日志
客户端程序
pg_receivewal [ option ...]
手册中的可执行程序 pg_receivewal
程序版本 10.23
参考清单 客户端程序
选项定义组 18
手册中的选项
用于写入输出的目录。 -D directory --directory= directory
当指定 …命令行工具 · 客户端程序
pg_receivewalpg_receivewal pg_receivewal — 从 PostgreSQL 服务器流式接收预写式日志大纲 pg_receivewal [option...]pg_receivewal
pg_receivewal --compress=method[:detail]-Z level-Z method[:detail]--compress=level--compress=method[:detail]
启用预写式日志的压缩。 压缩方法可以设置为 gzip、lz4(如果 PostgreSQL 编译时启用了 --with-lz4)或 none(不压缩)。还可以选择指定压缩细节字符串。如果该字符串是整数,则表示压缩级别;否则应为用逗号分隔的列表,…pg_receivewal › 选项
pg_receivewal --create-slot--create-slot
使用 --slot 中指定的名称创建一个新的物理复制槽,然后退出。pg_receivewal › 选项
pg_receivewal --dbname=connstr-d connstr--dbname=connstr
以连接字符串的形式指定用于连接到服务器的参数;这些参数会覆盖任何冲突的命令行选项。 为了与其他客户端应用保持一致,该选项被称为 --dbname。但由于 pg_receivewal 并不连接到集簇中的任何特定数据库,连接字符串中包含的数据库名会被服务器忽略。不过,以这种方式提供的数据库名会覆盖默认数据库名(replicati…pg_receivewal › 选项
pg_receivewal --directory=directory-D directory--directory=directory
用于写入输出的目录。 这个参数是必需的。pg_receivewal › 选项
pg_receivewal --drop-slot--drop-slot
删除 --slot 中指定名称的复制槽,然后退出。pg_receivewal › 选项
pg_receivewal --endpos=lsn-E lsn--endpos=lsn
当接收位置到达指定 LSN 时,自动停止复制并以正常退出状态 0 退出。 如果存在 LSN 恰好等于 lsn 的记录,该记录也会被处理。pg_receivewal › 选项
pg_receivewal --help-?--help
显示 pg_receivewal 命令行参数的帮助并退出。pg_receivewal › 选项
pg_receivewal --host=host-h host--host=host
指定运行服务器的主机名。如果该值以斜杠开头,则被用作 Unix 域套接字的目录。默认值取自 PGHOST 环境变量(如果已设置),否则尝试 Unix 域套接字连接。pg_receivewal › 选项
pg_receivewal --if-not-exists--if-not-exists
当指定 --create-slot 且同名槽已存在时,不报错。pg_receivewal › 选项
pg_receivewal --no-loop-n--no-loop
遇到连接错误时不要循环重试,而是立即报错退出。pg_receivewal › 选项
pg_receivewal --no-password-w--no-password
绝不提示输入密码。如果服务器要求密码认证,而又无法通过.pgpass 文件等其他方式获得密码,则连接尝试将会失败。此选项可用于批处理作业和脚本,因为这些场景中没有用户在场输入密码。pg_receivewal › 选项
pg_receivewal --no-sync--no-sync
此选项会使 pg_receivewal 不强制将 WAL 数据刷写到磁盘。这样会更快,但也意味着如果随后发生操作系统崩溃,可能会留下损坏的 WAL 段。一般来说,此选项适合测试,但不应在生产环境中执行 WAL 归档时使用。 这个选项与 --synchronous 不兼容。pg_receivewal › 选项
pg_receivewal --password-W--password
强制 pg_receivewal 在建立连接前提示输入密码。 这个选项从来都不是必需的,因为如果服务器要求密码认证,pg_receivewal 会自动提示输入密码。不过,pg_receivewal 需要先浪费一次连接尝试,才能发现服务器需要密码。在某些情况下,输入 -W 以避免这次额外的连接尝试是值得的。pg_receivewal › 选项
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开