mobilitydb_datagen
mobilitydb : MobilityDB random data generator functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1651 | mobilitydb_datagen | mobilitydb | 1.3.0 |
GIS | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-r | No | No | No | Yes | yes | no |
| Relationships | |
|---|---|
| Requires | mobilitydb |
| See Also | pgrouting faker random h3 pg_polyline dbt2 tsm_system_time tsm_system_rows |
| Siblings | mobilitydb |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 1.3.0 |
18 17 16 15 14 | mobilitydb |
mobilitydb |
| RPM | PIGSTY | 1.3.0 |
18 17 16 15 14 | mobilitydb_$v |
postgis36_$v |
| DEB | PGDG | 1.3.0 |
18 17 16 15 14 | postgresql-$v-mobilitydb |
postgresql-$v-postgis-3 |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 |
| el8.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 |
| el9.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 |
| el9.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 |
| el10.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 |
| el10.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 |
| d12.x86_64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
| d12.aarch64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
| d13.x86_64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
| d13.aarch64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
| u22.x86_64 | PIGSTY 1.3.0 | PGDG 1.2.0 | PGDG 1.2.0 | PGDG 1.2.0 | PGDG 1.2.0 |
| u22.aarch64 | PIGSTY 1.3.0 | PGDG 1.2.0 | PGDG 1.2.0 | PGDG 1.2.0 | PGDG 1.2.0 |
| u24.x86_64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
| u24.aarch64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
| u26.x86_64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
| u26.aarch64 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 |
Source
github.com/MobilityDB/MobilityDB
mobilitydb-1.3.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources: repository, synthetic data generator docs, control file, temporal generators, temporal point generators
mobilitydb_datagen provides PL/pgSQL functions for generating synthetic PostgreSQL, PostGIS, and MobilityDB values. It is mainly useful for regression data, demos, and benchmark fixtures that need random temporal values or trajectories.
Generating Random Temporal Values
Other confirmed generator families include scalar helpers such as random_bool, random_int, random_float, random_text, and random_timestamptz; array, set, span, and range helpers; temporal helpers such as random_tbool_inst, random_tint_discseq, random_tfloat_seq, and random_tfloat_seqset; and spatial/temporal-point helpers such as random_geom_point, random_geom_linestring, random_tgeompoint_contseq, random_tgeompoint_seqset, random_tgeogpoint_contseq, and random_tgeogpoint_seqset.
Generating Test Datasets
Create bulk test data for benchmarking trip queries:
Caveats
- The control file requires the main
mobilitydbextension;mobilitydb_datagenis not standalone. - The package row in
db/extension.csvlists version1.3.0, packagemobilitydb, and PostgreSQL support for 14 through 18. - Upstream docs intentionally omit detailed parameter lists for many generator functions and point users to the SQL source files for exact signatures.