tzf
Fast lookup timezone name by GPS coordinates
Repository
ringsaturn/pg-tzf
https://github.com/ringsaturn/pg-tzf
Source
pg-tzf-0.3.0.tar.gz
pg-tzf-0.3.0.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 1680 | tzf | No | Yes | No | Yes | No | No | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.3.0 | 1817161514 | pg_tzf | - |
| RPM | PIGSTY | 0.3.0 | 1817161514 | pg_tzf_$v | - |
| DEB | PIGSTY | 0.3.0 | 1817161514 | postgresql-$v-tzf | - |
Build
You can build the RPM / DEB packages for pg_tzf using pig build:
Install
You can install pg_tzf directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Sources: README, v0.3.0 release
tzf is a PostgreSQL extension for fast timezone lookup from longitude and latitude coordinates. The pgext catalog maps package pg_tzf to extension tzf and tracks version 0.3.0 for PostgreSQL 14-18.
Create the extension
The upstream project packages one build artifact per PostgreSQL major version.
Functions
Coordinate lookup:
Batch coordinate lookup:
Point lookup:
Batch point lookup:
Notes
- Upstream README documents support for PostgreSQL 14 through 18 builds.
- Pre-built release tarballs contain
tzf.so,tzf.control, andtzf--<version>.sql. - The current README still points to a complete schema in
sql/tzf.sqland includes benchmark figures for the four lookup functions above. - Upstream v0.3.0 adds city-json powered tests for timezone lookup queries and dependency updates; the SQL API remains the four lookup functions above.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)