https://github.com/adjust/pg-country
country type for postgres
https://github.com/adjust/pg-country
adjust-kpis-team adjust-pg-extension
Last synced: 4 months ago
JSON representation
country type for postgres
- Host: GitHub
- URL: https://github.com/adjust/pg-country
- Owner: adjust
- License: postgresql
- Created: 2015-08-10T15:02:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2025-03-14T16:42:51.000Z (over 1 year ago)
- Last Synced: 2025-04-16T02:06:20.303Z (about 1 year ago)
- Topics: adjust-kpis-team, adjust-pg-extension
- Language: C
- Homepage:
- Size: 73.2 KB
- Stars: 8
- Watchers: 60
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://github.com/adjust/pg-country/actions/workflows/main.yml)
# country
A country Extension for PostgreSQL.
The `pg-country` extension create new data types `country`, which is a enum types.
The `country` enumeration values follow the `ISO 3166-1 alpha-2` standard.
The extension also creates comparison operators and operator classes for btree and hash indexes.
## Installation from source codes
To install `country`, execute this in the extension's directory:
```shell
make install
```
### Testing
To test the `country`, execute this in the extension's directory:
```shell
make installcheck
```
**Notice:** Don't forget to set the `PG_CONFIG` variable (`make PG_CONFIG=...`)
in case you want to test `country` on a non-default or custom build of PostgreSQL.
Read more [here](https://wiki.postgresql.org/wiki/Building_and_Installing_PostgreSQL_Extension_Modules).