mobilitydb_datagen
概览
| 扩展包名 | 版本 | 分类 | 许可证 | 语言 |
|---|---|---|---|---|
mobilitydb | 1.3.1 | GIS | PostgreSQL | SQL |
| ID | 扩展名 | Bin | Lib | Load | Create | Trust | Reloc | 模式 |
|---|---|---|---|---|---|---|---|---|
| 1650 | mobilitydb | 否 | 是 | 是 | 是 | 否 | 否 | - |
| 1651 | mobilitydb_datagen | 否 | 否 | 否 | 是 | 否 | 是 | - |
Pigsty 1.3.1 bundles MobilityDB DataGen; upgrading from 1.2 to 1.3 requires upstream backup/restore.
版本
| 类型 | 仓库 | 版本 | PG 大版本 | 包名 | 依赖 |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.3.1 | 1817161514 | mobilitydb | mobilitydb |
| RPM | PIGSTY | 1.3.1 | 1817161514 | mobilitydb_$v | postgis36_$v |
| DEB | PIGSTY | 1.3.1 | 1817161514 | postgresql-$v-mobilitydb | postgresql-$v-postgis-3 |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| el8.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| el9.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| el9.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| el10.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| el10.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| d12.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| d12.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| d13.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| d13.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| u22.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| u22.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| u24.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| u24.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| u26.x86_64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
| u26.aarch64 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 | PIGSTY 1.3.1 |
构建
您可以使用 pig build 命令构建 mobilitydb 扩展的 RPM / DEB 包:
安装
您可以直接安装 mobilitydb 扩展包的预置二进制包,首先确保 PGDG 和 PIGSTY 仓库已经添加并启用:
使用 pig 或者是 apt/yum/dnf 安装扩展:
创建扩展:
用法
来源:
mobilitydb_datagen 1.3.1 提供 PL/pgSQL 函数,用来生成合成的 PostgreSQL、PostGIS 和 MobilityDB 值。它主要适用于需要随机时态值或轨迹的回归数据、演示和基准测试数据集。
生成随机时态值
其他已确认的生成器家族包括 random_bool、random_int、random_float、random_text、random_timestamptz 等标量辅助函数;数组、集合、span 和 range 辅助函数;random_tbool_inst、random_tint_discseq、random_tfloat_seq、random_tfloat_seqset 等 temporal 辅助函数;以及 random_geom_point、random_geom_linestring、random_tgeompoint_contseq、random_tgeompoint_seqset、random_tgeogpoint_contseq、random_tgeogpoint_seqset 等空间/temporal-point 辅助函数。
生成测试数据集
为 trip 查询基准测试创建批量测试数据:
注意事项
- control file 要求主
mobilitydb扩展已存在;mobilitydb_datagen不是独立扩展。 - 生成器随
mobilitydb版本1.3.1分发。应保持依赖与生成器文件一致;可选类型族是否存在取决于构建开关及软件包可用性。 - 上游文档有意省略许多生成器函数的详细参数列表,并让用户查看 SQL 源文件确认精确签名。
生成器默认产生随机合成值,并不保证应用数据集可重现。比较多次运行时应设置明确的随机种子,并核对边界、时区、插值方式和 SRID 是否符合工作负载。
这个页面对您有帮助吗?
感谢反馈,我们会据此改进这篇文档。
哪里没有解决?(可选)