geohistorical_objects
geohistorical_objects · Geohistorical objects support
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100549 | geohistorical_objects | geohistorical_objects | 1.0 | GIS | MIT | SQL |
Usage
Sources:
geohistorical_objects provides an inheritance-based data model for geographic objects whose names, geometry, source, date, and precision vary through history. It creates objects in the fixed geohistorical_object schema and depends on postgis, pgsfti, unaccent, and pg_trgm.
Core Model
Applications first populate historical_source and numerical_origin_process, including a default_fuzzy_date of type sfti and a default_spatial_precision JSON object containing a nonnegative default key. Rows belong in child tables, not the parent geohistorical_object table. The registration helper adds foreign keys and B-tree, GIN, and GiST indexes to a child.
The extension also supplies SFTI conversion functions and casts, relation tables, name-normalization helpers, and fuzzy-date distance helpers. Its design uses PostgreSQL table inheritance rather than declarative partitioning; uniqueness and foreign-key behavior do not automatically span every child.
Installation Risk
The version 1.0 install script contains unconditional DROP TABLE ... CASCADE, creates broadly named casts and helper functions, and embeds test-style statements. Installing or reinstalling it can remove existing objects in the target schema. The registration function builds dynamic DDL from text identifiers without identifier quoting.
Review the complete SQL file and rehearse installation, registration, dump/restore, and removal in a disposable database. Take a tested backup before using it with existing data, pass only trusted simple identifiers to the registration function, and validate the old upstream compatibility claim on the exact PostgreSQL/PostGIS/pgsfti versions in use.