country
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_country | 0.0.3 | TYPE | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3660 | country | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.0.3 | 1817161514 | pg_country | - |
| RPM | PIGSTY | 0.0.3 | 1817161514 | pg_country_$v | - |
| DEB | PIGSTY | 0.0.3 | 1817161514 | postgresql-$v-pg-country | - |
Build
You can build the RPM / DEB packages for pg_country using pig build:
Install
You can install pg_country directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
The country extension provides an enumerated data type for ISO 3166-1 alpha-2 country codes with minimal storage overhead.
Data Type
The country type restricts values to valid ISO 3166-1 alpha-2 codes (two-letter country designations like US, GB, FR, DE, etc.). Invalid codes are rejected on input.
Operators
Standard comparison operators are supported: =, <>, <, >, <=, >=.
Index Support
Both B-tree and hash index operator classes are provided for efficient querying and sorting on country columns.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)