PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
常用条目12353
polyvector按维度路由向量的实验性复合类型。
Prototype composite type routing vectors by dimension.
polyvector
AI 与向量AI 与向量 · 扩展目录
popcount为 PostgreSQL bit(n) 值提供多种置位计数函数。
provide population-count functions for PostgreSQL bit(n) values
bit-count bitwise hamming-weight popcount
postgresql-popcount
函数与聚合函数与聚合 · 扩展目录
popen将路径转换为开放形式。
Converts path to open form.
popen ( path ) → path
几何函数和操作符函数 · 几何函数和操作符
populate_recordpopulate_record ( anyelement, hstore ) → anyelement 用 hstore 中匹配的值替换左操作数(必须为复合类型)中的字段。 populate_record(ROW(1,2), 'f1=>42'::hstore) → (42,2)hstore — hstore 键/值数据类型 › hstore 操作符和函数
port设置服务器监听的 TCP 端口。
Sets the TCP port the server listens on.
port 定义服务器监听的 TCP 端口。
port:设置服务器监听的 TCP 端口。所有 TCP 监听地址共用一个端口,它会进入客户端连接串、服务发现、防火墙规则与健康检查。 port 属于 POSTMASTER 上下文:PostgreSQL 在服务器启动时读取…配置参数 · 连接和认证 / 连接设置
port服务器主机上要连接的端口号;对于 Unix 域连接,则为套接字文件名后缀。如果 host 或 hostaddr 指定了多个主机,可提供与主机列表等长的逗号分隔端口列表,或指定一个供所有主机使用的端口号。空字符串或列表中的空项表示使用 PostgreSQL 构建时确定的默认端口。
连接目标
port
客户端库 libpq 10.23
手册定义 手册已记载
源码中的环境变量回退 …连接参数 · 连接目标
PortalSuspendedPortalSuspended 是后端协议消息,表示 portal 暂停。仅在 Execute 消息指定的行数上限已达到时出现。
后端消息
PortalSuspended (B)
方向 后端 → 前端
首个线上协议字段 Byte1('s')
字段条目 2
手册中的交互阶段 扩展查询
消息边界与重复字段
下方完整定义保留重复项、计数与条件字段。表格行号表示文档中的字段定义,并非…协议消息 · 后端消息
portuguese全文检索配置 portuguese。
配置
配置 portuguese
解析器 默认
initdb 生成的定义
/*
* text search configuration for portuguese language
*
* Copyright (c) 2007-2017, PostgreSQL Global Development Group
*
* src/…全文检索组件 · 配置
portuguese_stem用于 portuguese 语言的 Snowball 词干提取器。
词典
语言 portuguese
ASCII 语言名称 portuguese
停用词 portuguese
停用词 SHA-256 5f305fac1d830620eeb9b2a68a1b96bf26f65c2e9257d56c8413d6fb36ed6cac
停用词行数 203
词典 portuguese_…全文检索组件 · 词典
position返回substring在string中首次出现的位置;如果不存在则返回零。
Returns first starting index of the specified substring within string, or zero if it's not present.
position ( substring text IN string text ) → integer…函数 · 字符串函数和操作符
POSIX标准 POSIX 排序规则
内置排序规则
排序规则名称(collname) POSIX
排序规则提供者(collprovider) c
字符编码(collencoding) -1
排序区域设置(collcollate) POSIX
字符分类区域设置(collctype) POSIX
提供者版本(collversion) _null_
是否确定性比较(collisdetermi…排序规则与编码 · 内置排序规则
POSIX 时区规范B.5. POSIX 时区规范
PostgreSQL 可以接受按照 POSIX 标准为 TZ 环境变量规定的规则编写的时区规范。POSIX 时区规范不足以处理真实世界时区历史的复杂性,但有时仍有使用它们的理由。POSIX 时区规范的形式为
STD offset [ DST [ dstoffset ] [ , rule ] ](为便于阅读,这里把字段之间的空格写了出来,但实际使用…POSIX 时区规范
POSIX 正则表达式9.7.3. POSIX 正则表达式表 9.16 列出了所有可用于 POSIX 正则表达式模式匹配的操作符。表 9.16. 正则表达式匹配操作符 操作符 描述 示例 text ~ text → boolean 字符串匹配正则表达式,区分大小写 'thomas' ~ 't.*ma' → t text ~* text → boolean 字符串匹配正则表达式,不区分大小写 'tho…POSIX 正则表达式
post_auth_delay设置连接认证完成后的调试等待时间。
Sets the amount of time to wait after authentication on connection startup.
post_auth_delay:设置连接认证完成后的调试等待时间。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 0 s,context 为 …配置参数 · 开发者选项
post_parse_analyze_hook在查询完成语义分析后取得查询树。
语义分析后处理
解析与命令处理
解析器把原始语法树转换为 Query 后调用此钩子,传入解析状态与已分析的查询。扩展可在此检查或记录查询,后续仍会经过重写、规划和执行;这里不是原始 SQL 文本的词法分析入口。
typedef void (*post_parse_analyze_hook_type) (ParseState *pstate, Q…扩展钩子 · 解析与命令处理
postalpostal 为 PostgreSQL 提供 libpostal 绑定,可标准化自由格式地址并将其解析为带标签的组成部分。
PostgreSQL bindings for libpostal that normalize free-form addresses and parse them into labeled components.
address geocode lib…地理空间 · 扩展目录
postbis提供压缩的 DNA、RNA、氨基酸及比对序列类型,以及类型转换、运算符、索引和生物信息学函数。
Adds compressed DNA, RNA, amino-acid, and aligned sequence types with casts, operators, indexes, and bioinformatics functions.
amino-acid bioi…数据类型 · 扩展目录
postcode提供紧凑英国邮编及国际 postal_code 类型,支持校验与索引前缀搜索
Compact UK postcode and international postal_code types with validation and indexed prefix search
data-type indexing postcode postal-code international…数据类型 · 扩展目录
postfgapostfga 是一个需预加载的 PostgreSQL 扩展,通过 FDW、C 函数、gRPC 后台工作进程和共享内存缓存集成 OpenFGA 授权。
A preload PostgreSQL extension integrating OpenFGA authorization through an FDW, C functions, gRPC background work…安全 · 扩展目录
postgis_domains定义可复用的 PostGIS geometry/geography 域,约束为有效、简单的 SRID 4326 值
Define reusable PostGIS geometry and geography domains constrained to valid, simple SRID 4326 values
domains geometry postgis srid-4…地理空间 · 扩展目录
postgis_hex9使用 UUID 单元标识的 Hex9 分层地理网格
Hex9 hierarchical geographic grids with UUID cell identifiers
libhex9
地理空间地理空间 · 扩展目录
postgis_letters使用内置矢量字体将文本字母转换为 PostGIS 几何对象。
convert text letters into PostGIS geometries using packaged vector fonts
font geometry postgis typography
postgis_letters
地理空间地理空间 · 扩展目录
postgis_rasterPostGIS 光栅类型和函数
PostGIS raster types and functions
postgis
地理空间地理空间 · 扩展目录
postgis_sfcgalPostGIS SFCGAL 函数
PostGIS SFCGAL functions
postgis
地理空间地理空间 · 扩展目录
postgis_tiger_geocoderPostGIS tiger 地理编码器和反向地理编码器
PostGIS tiger geocoder and reverse geocoder
postgis
地理空间地理空间 · 扩展目录
postgis_topologyPostGIS 拓扑空间类型和函数
PostGIS topology spatial types and functions
postgis
地理空间地理空间 · 扩展目录
postgraphPostgres的一站式图扩展
All in One Graph Extension for Postgres
graph graphdatabase postgres
postgraph
功能特性功能特性 · 扩展目录
postgreChain直接从 PostgreSQL 查询 Solana RPC 数据,并执行钱包、空投与转账操作
Query Solana RPC data and perform wallet, airdrop, and transfer operations directly from PostgreSQL
blockchain pgrx solana solana-rpc
postgreCha…实用工具 · 扩展目录
postgrespostgres — PostgreSQL 数据库服务器
服务端程序
postgres [ option ...]
手册中的可执行程序 postgres
程序版本 10.23
参考清单 服务端程序
选项定义组 32
手册中的选项
设置供服务器进程使用的共享缓冲区数量。该参数的默认值由 initdb 自动选择。指定此选项等效于设置 shared_buffers 配置参数。 -B…命令行工具 · 服务端程序
postgrespostgres postgres — PostgreSQL 数据库服务器大纲 postgres [option...]postgres
postgres --describe-config--describe-config
该选项会以制表符分隔的 COPY 格式导出服务器内部配置变量、说明以及默认值。它主要是为管理工具设计的。postgres › 选项 › 通用选项
postgres --help-?--help
显示 postgres 命令行参数的帮助并退出。postgres › 选项 › 通用选项
postgres --name=value--name=value
设置一个命名的运行时参数;这是 -c 的较短形式。postgres › 选项 › 通用选项
postgres --single--single
选择单用户模式。这必须是命令行上的第一个参数。postgres › 选项 › 用于单用户模式的选项
postgres --version-V--version
打印 postgres 的版本并退出。postgres › 选项 › 通用选项
postgres -B nbuffers-B nbuffers
设置供服务器进程使用的共享缓冲区数量。该参数的默认值由 initdb 自动选择。指定此选项等效于设置 shared_buffers 配置参数。postgres › 选项 › 通用选项
postgres -C name-C name
打印指定运行时参数的值并退出。(详情见上面的 -c 选项。)这会返回 postgresql.conf 中的值,并应用本次调用中提供的任何参数修改。它不反映集簇启动时提供的参数。 对于大多数参数,这个选项可以在运行中的服务器上使用。不过,对于某些在运行时计算出的参数,服务器必须先关闭(例如 shared_memory_size、shared_memory_size…postgres › 选项 › 通用选项
postgres -c name=value-c name=value
设置一个命名的运行时参数。PostgreSQL 支持的配置参数见第 19 章。大多数其他命令行选项实际上都是这种参数赋值的简写形式。-c 可以出现多次以设置多个参数。postgres › 选项 › 通用选项
postgres -D datadir-D datadir
指定数据库配置文件在文件系统中的位置。详见第 19.2 节。postgres › 选项 › 通用选项
postgres -d debug-level-d debug-level
设置调试级别。该值设得越高,写入服务器日志的调试输出就越多。取值范围是 1 到 5。还可以针对某个特定会话传入 -d 0,从而阻止父 postgres 进程的服务器日志级别传播到该会话。postgres › 选项 › 通用选项
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开