{
   "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 -- created by Dave Green (version 1.3.0); later versions by John Burns fix a heap overflow in postcode_out() and an unsafe % index registration, and add compatibility with 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.1.0",
   "date": "2026-10-12T14:10:05Z",
   "maintainer": "John Burns <john@impactdatametrics.com>",
   "release_status": "stable",
   "user": "JohnB",
   "sha1": "e3a549136a5a4cbaece28a5045b8d7d1f883e2a9",
   "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.1.0.sql",
         "version": "2.1.0"
      }
   },
   "tags": ["postcode", "postal", "postal_code", "zip", "mail", "address", "delivery", "uk", "international", "iso3166", "upu", "outcode"],
   "resources": {
      "bugtracker": {
         "web": "https://github.com/John-Cameron-Burns/pg-postcode/issues"
      },
      "homepage": "https://github.com/John-Cameron-Burns/pg-postcode",
      "repository": {
         "type": "git",
         "url": "https://github.com/John-Cameron-Burns/pg-postcode.git",
         "web": "https://github.com/John-Cameron-Burns/pg-postcode"
      }
   }
}
