pg_phonenumber
C++ libphonenumber-backed phone type, equality operators, and supported-region helpers
pg_phonenumber · C++ libphonenumber-backed phone type, equality operators, and supported-region helpers
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101594 | pg_phonenumber | pg_phonenumber | 1.0 | TYPE | Unknown | C++ |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_phonenumber.control)
- Official extension SQL (pg_phonenumber–1.0.sql)
pg_phonenumber — C++ libphonenumber-backed phone type, equality operators, and supported-region helpers. Use it when application data needs this type, domain, or its operators. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
get_supported_calling_codes()is an extension function and returnsINT[].get_supported_regions()is an extension function and returnsTEXT[].phone_eq(phone, phone)is an extension function.phone_in(cstring, oid, integer)is an extension function and returnsphone.phone_ne(phone, phone)is an extension function.phone_out(phone)is an extension function and returnscstring.phoneis an extension-defined type.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as non-relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.