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.
To install country
, execute this in the extension's directory:
make install
To test the country
, execute this in the extension's directory:
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.