{ "name": "postcode", "version": "2.0.1", "abstract": "UK postcode type optimised for indexing, plus postal_code for the postal codes of any country", "maintainer": "John Burns ", "license": "freebsd", "release_status": "stable", "description": "Two types for postal codes. postcode: a 32-bit UK postcode optimised for indexing and partial matches, and dps for delivery point suffixes -- a maintained fork of Dave Green's original, with a fix for a heap overflow in postcode_out(), an unsafe % index-registration fix, and compatibility patches for PostgreSQL 14 and later. postal_code (new in 2.0.0): a 64-bit type for any country, written CC-code as the UPU recommends ('US-90210', 'GB-SW1A 1AA'), with formats for 194 of the 250 ISO 3166-1 countries and territories (the other 56 have no postal codes). Values sort by country in ISO order then by their own code; prefixes are index range scans (postal_prefix(), lower_bound(), upper_bound(), the % operator); outcode(); is_valid_postal_code() and to_postal_code() for loading dirty feeds; a column can be locked to a country, postal_code('US'); and a new country needs SQL (add_country_template) and no C. Validated on 117 million OpenStreetMap postcodes, 1.8 million GeoNames codes and Companies House addresses -- see VALIDATION.md. Upgrading from 1.3.x is ALTER EXTENSION postcode UPDATE; the existing types are unchanged.", "tags": [ "postcode", "postal", "postal_code", "zip", "mail", "address", "delivery", "uk", "international", "iso3166", "upu", "outcode" ], "meta-spec": { "version": "1.0.0", "url": "http://pgxn.org/meta/spec.txt" }, "provides": { "postcode": { "abstract": "UK postcode type optimised for indexing, plus postal_code for any country", "file": "postcode--2.0.1.sql", "docfile": "README.md", "version": "2.0.1" } }, "resources": { "homepage": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes", "bugtracker": { "web": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes/issues" }, "repository": { "url": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes.git", "web": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes", "type": "git" }, "x_original": { "web": "https://github.com/patchsoft/postcode", "note": "This is a maintained fork of patchsoft/postcode -- see description." } }, "generated_by": "John Burns", "prereqs": { "runtime": { "requires": { "PostgreSQL": "14.0.0" } } } }