{
   "name": "postcode",
   "abstract": "UK postcode type optimised for indexing, plus postal_code for the postal codes of any country",
   "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.",
   "version": "2.0.1",
   "date": "2026-10-04T19:26:59Z",
   "maintainer": "John Burns <john@impactdatametrics.com>",
   "release_status": "stable",
   "user": "JohnB",
   "sha1": "71ca13bd60447e3b904be790a42a91ff7d582212",
   "license": "freebsd",
   "prereqs": {
      "runtime": {
         "requires": {
            "PostgreSQL": "14.0.0"
         }
      }
   },
   "provides": {
      "postcode": {
         "abstract": "UK postcode type optimised for indexing, plus postal_code for any country",
         "docfile": "README.md",
         "file": "postcode--2.0.1.sql",
         "version": "2.0.1"
      }
   },
   "tags": ["postcode", "postal", "postal_code", "zip", "mail", "address", "delivery", "uk", "international", "iso3166", "upu", "outcode"],
   "resources": {
      "bugtracker": {
         "web": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes/issues"
      },
      "homepage": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes",
      "repository": {
         "type": "git",
         "url": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes.git",
         "web": "https://github.com/ztz88f5f6h-glitch/pg-uk-postcodes"
      }
   }
}
