line
平面上的无限直线
当前查看 PostgreSQL 18。
中文定义与说明
平面上的无限直线
同版本中文手册定义
line | 24 字节 | 无限直线 | {A,B,C} |
PG10–20 核心源码清单。类型转换与操作符类列出源码显式声明的关系;缺少记录不能排除通过其他机制进行转换或使用索引。
定义
平面上的无限直线
line
- 目录名称
- pg_catalog.line
- 类型 OID
- 628
- 类型种类
- 基础类型
- 声明长度
- 24 字节
- 存储策略
- plain
- 输入函数
- line_in
- 输出函数
- line_out
- 手册中的声明
- line
- 存储大小
- 24 字节
- 手册说明
- 无限直线
- 表示方式
- {A,B,C}
系统目录属性
此构建的源码初始化值。字段含义参见 pg_type 。包含头文件默认值;依赖构建的常量保留符号形式,不作为服务器运行时实测。
oid628descrgeometric line, formats '{A,B,C}'/'[point1,point2]'typacl_null_typlen24typelemfloat8typnamelinetypsendline_sendtyptypebtypaligndtyparray0typbyvalftypdelim','typinputline_intypmodin-typndims0typownerPOSTGREStyprelid0typmodout-typoutputline_outtyptypmod-1typanalyze-typdefault_null_typnotnullftypreceiveline_recvtypstorageptypbasetype0typcategoryGtypcollation0typisdefinedttypnamespacepg_catalogtypsubscriptraw_array_subscript_handlertypdefaultbin_null_array_type_oid629typispreferredfarray_type_name_line
运算符重载 18
每种操作数签名均为独立重载。实现函数和返回类型来自同一源码构建。
| 运算符 | 左操作数 | 右操作数 | 返回类型 | 含义 | 实现函数 |
|---|---|---|---|---|---|
<-> | point | line | float8 | 两者之间的距离。 | dist_pl |
<-> | line | point | float8 | 两者之间的距离。 | dist_lp |
<-> | lseg | line | float8 | 两者之间的距离。 | dist_sl |
<-> | line | lseg | float8 | 两者之间的距离。 | dist_ls |
<-> | line | line | float8 | 两者之间的距离。 | line_distance |
?# | lseg | line | bool | 相交。 | inter_sl |
?# | line | box | bool | 相交。 | inter_lb |
<@ | point | line | bool | 点位于直线上。 | on_pl |
<@ | lseg | line | bool | 线段位于直线上。 | on_sl |
## | point | line | point | B 上距离 A 最近的点。 | close_pl |
## | line | lseg | point | B 上距离 A 最近的点。 | close_ls |
?# | line | line | bool | 相交。 | line_intersect |
?|| | line | line | bool | 平行。 | line_parallel |
?-| | line | line | bool | 垂直相交。 | line_perp |
?- | 无(一元) | line | bool | 水平。 | line_horizontal |
?| | 无(一元) | line | bool | 竖直。 | line_vertical |
= | line | line | bool | 等于。 | line_eq |
# | line | line | point | 交点。 | line_interpt |
版本比较
PostgreSQL 17 → 18。属性比较不包含构建标识和说明正文;原始目录字段与源描述保留原文。
这两个样本的系统目录和结构化属性没有变化。
文档与源码
- 构建
- 18.6 · https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 指纹
555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f
相关条目
全部数据类型 · 下载此版本 JSON · 最早收录的样本不代表该类型的实际引入版本。