Skip to content

addressing_dictionary

Address-aware text search dictionaries and configurations

addressing_dictionary : Address-aware text search dictionaries and configurations

Overview

ID Extension Package Version Category License Language
2270 addressing_dictionary addressing_dictionary 1.1 FTS MIT SQL
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
----d-r No No No Yes yes no
SQL and dictionary data only; no shared library. PostgreSQL 14-18 verified in PGSTY builds; upstream declares no current major-version matrix.

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 1.1 18 17 16 15 14 addressing_dictionary -
RPM PIGSTY 1.1 18 17 16 15 14 addressing_dictionary_$v -
DEB PIGSTY 1.1 18 17 16 15 14 postgresql-$v-addressing-dictionary -
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
el8.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
el9.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
el9.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
el10.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
el10.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
d12.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
d12.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
d13.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
d13.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
u22.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
u22.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
u24.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
u24.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
u26.x86_64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
u26.aarch64 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1 PIGSTY 1.1
Package Version OS ORG SIZE File URL
addressing_dictionary_18 1.1 el8.x86_64 pigsty 11.5 KiB addressing_dictionary_18-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_18 1.1 el8.aarch64 pigsty 11.5 KiB addressing_dictionary_18-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_18 1.1 el9.x86_64 pigsty 11.5 KiB addressing_dictionary_18-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_18 1.1 el9.aarch64 pigsty 11.5 KiB addressing_dictionary_18-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_18 1.1 el10.x86_64 pigsty 11.7 KiB addressing_dictionary_18-1.1-1PGSTY.el10.noarch.rpm
addressing_dictionary_18 1.1 el10.aarch64 pigsty 11.7 KiB addressing_dictionary_18-1.1-1PGSTY.el10.noarch.rpm
postgresql-18-addressing-dictionary 1.1 d12.x86_64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-18-addressing-dictionary 1.1 d12.aarch64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-18-addressing-dictionary 1.1 d13.x86_64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-18-addressing-dictionary 1.1 d13.aarch64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-18-addressing-dictionary 1.1 u22.x86_64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-18-addressing-dictionary 1.1 u22.aarch64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-18-addressing-dictionary 1.1 u24.x86_64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-18-addressing-dictionary 1.1 u24.aarch64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-18-addressing-dictionary 1.1 u26.x86_64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
postgresql-18-addressing-dictionary 1.1 u26.aarch64 pigsty 3.5 KiB postgresql-18-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
Package Version OS ORG SIZE File URL
addressing_dictionary_17 1.1 el8.x86_64 pigsty 11.5 KiB addressing_dictionary_17-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_17 1.1 el8.aarch64 pigsty 11.5 KiB addressing_dictionary_17-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_17 1.1 el9.x86_64 pigsty 11.5 KiB addressing_dictionary_17-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_17 1.1 el9.aarch64 pigsty 11.5 KiB addressing_dictionary_17-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_17 1.1 el10.x86_64 pigsty 11.7 KiB addressing_dictionary_17-1.1-1PGSTY.el10.noarch.rpm
addressing_dictionary_17 1.1 el10.aarch64 pigsty 11.7 KiB addressing_dictionary_17-1.1-1PGSTY.el10.noarch.rpm
postgresql-17-addressing-dictionary 1.1 d12.x86_64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-17-addressing-dictionary 1.1 d12.aarch64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-17-addressing-dictionary 1.1 d13.x86_64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-17-addressing-dictionary 1.1 d13.aarch64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-17-addressing-dictionary 1.1 u22.x86_64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-17-addressing-dictionary 1.1 u22.aarch64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-17-addressing-dictionary 1.1 u24.x86_64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-17-addressing-dictionary 1.1 u24.aarch64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-17-addressing-dictionary 1.1 u26.x86_64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
postgresql-17-addressing-dictionary 1.1 u26.aarch64 pigsty 3.5 KiB postgresql-17-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
Package Version OS ORG SIZE File URL
addressing_dictionary_16 1.1 el8.x86_64 pigsty 11.5 KiB addressing_dictionary_16-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_16 1.1 el8.aarch64 pigsty 11.5 KiB addressing_dictionary_16-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_16 1.1 el9.x86_64 pigsty 11.5 KiB addressing_dictionary_16-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_16 1.1 el9.aarch64 pigsty 11.5 KiB addressing_dictionary_16-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_16 1.1 el10.x86_64 pigsty 11.7 KiB addressing_dictionary_16-1.1-1PGSTY.el10.noarch.rpm
addressing_dictionary_16 1.1 el10.aarch64 pigsty 11.7 KiB addressing_dictionary_16-1.1-1PGSTY.el10.noarch.rpm
postgresql-16-addressing-dictionary 1.1 d12.x86_64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-16-addressing-dictionary 1.1 d12.aarch64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-16-addressing-dictionary 1.1 d13.x86_64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-16-addressing-dictionary 1.1 d13.aarch64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-16-addressing-dictionary 1.1 u22.x86_64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-16-addressing-dictionary 1.1 u22.aarch64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-16-addressing-dictionary 1.1 u24.x86_64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-16-addressing-dictionary 1.1 u24.aarch64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-16-addressing-dictionary 1.1 u26.x86_64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
postgresql-16-addressing-dictionary 1.1 u26.aarch64 pigsty 3.5 KiB postgresql-16-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
Package Version OS ORG SIZE File URL
addressing_dictionary_15 1.1 el8.x86_64 pigsty 11.5 KiB addressing_dictionary_15-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_15 1.1 el8.aarch64 pigsty 11.5 KiB addressing_dictionary_15-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_15 1.1 el9.x86_64 pigsty 11.5 KiB addressing_dictionary_15-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_15 1.1 el9.aarch64 pigsty 11.5 KiB addressing_dictionary_15-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_15 1.1 el10.x86_64 pigsty 11.7 KiB addressing_dictionary_15-1.1-1PGSTY.el10.noarch.rpm
addressing_dictionary_15 1.1 el10.aarch64 pigsty 11.7 KiB addressing_dictionary_15-1.1-1PGSTY.el10.noarch.rpm
postgresql-15-addressing-dictionary 1.1 d12.x86_64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-15-addressing-dictionary 1.1 d12.aarch64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-15-addressing-dictionary 1.1 d13.x86_64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-15-addressing-dictionary 1.1 d13.aarch64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-15-addressing-dictionary 1.1 u22.x86_64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-15-addressing-dictionary 1.1 u22.aarch64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-15-addressing-dictionary 1.1 u24.x86_64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-15-addressing-dictionary 1.1 u24.aarch64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-15-addressing-dictionary 1.1 u26.x86_64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
postgresql-15-addressing-dictionary 1.1 u26.aarch64 pigsty 3.5 KiB postgresql-15-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
Package Version OS ORG SIZE File URL
addressing_dictionary_14 1.1 el8.x86_64 pigsty 11.5 KiB addressing_dictionary_14-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_14 1.1 el8.aarch64 pigsty 11.5 KiB addressing_dictionary_14-1.1-1PGSTY.el8.noarch.rpm
addressing_dictionary_14 1.1 el9.x86_64 pigsty 11.5 KiB addressing_dictionary_14-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_14 1.1 el9.aarch64 pigsty 11.5 KiB addressing_dictionary_14-1.1-1PGSTY.el9.noarch.rpm
addressing_dictionary_14 1.1 el10.x86_64 pigsty 11.7 KiB addressing_dictionary_14-1.1-1PGSTY.el10.noarch.rpm
addressing_dictionary_14 1.1 el10.aarch64 pigsty 11.7 KiB addressing_dictionary_14-1.1-1PGSTY.el10.noarch.rpm
postgresql-14-addressing-dictionary 1.1 d12.x86_64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-14-addressing-dictionary 1.1 d12.aarch64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~bookworm_all.deb
postgresql-14-addressing-dictionary 1.1 d13.x86_64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-14-addressing-dictionary 1.1 d13.aarch64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~trixie_all.deb
postgresql-14-addressing-dictionary 1.1 u22.x86_64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-14-addressing-dictionary 1.1 u22.aarch64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~jammy_all.deb
postgresql-14-addressing-dictionary 1.1 u24.x86_64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-14-addressing-dictionary 1.1 u24.aarch64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~noble_all.deb
postgresql-14-addressing-dictionary 1.1 u26.x86_64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~resolute_all.deb
postgresql-14-addressing-dictionary 1.1 u26.aarch64 pigsty 4.5 KiB postgresql-14-addressing-dictionary_1.1-1PGSTY~resolute_all.deb

Source

github.com/pramsey/pgsql-addressing-dictionary

pig build pkg addressing_dictionary;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install addressing_dictionary;		# install via package name, for the active PG version

pig install addressing_dictionary -v 18;   # install for PG 18
pig install addressing_dictionary -v 17;   # install for PG 17
pig install addressing_dictionary -v 16;   # install for PG 16
pig install addressing_dictionary -v 15;   # install for PG 15
pig install addressing_dictionary -v 14;   # install for PG 14

Create this extension with:

CREATE EXTENSION addressing_dictionary;

Usage

Sources:

addressing_dictionary installs address-oriented full-text-search configurations and dictionaries. It is useful for approximate local address lookup where street-type, direction, and ordinal variants should normalize to comparable lexemes; it is not a geocoder or a substitute for address parsing and validation.

Core Workflow

Install the extension once in the database, normalize address text with the supplied configuration, and index the same expression used by queries.

CREATE EXTENSION addressing_dictionary;

SELECT to_tsvector('addressing_en', '1234 n main st');

CREATE INDEX address_search_idx
ON address_book
USING gin (to_tsvector('addressing_en', full_address));

SELECT *
FROM address_book
WHERE to_tsvector('addressing_en', full_address)
      @@ plainto_tsquery('addressing_en', '1234 north main street');

Version 1.1 keeps an abbreviated cardinal direction and also emits its expanded form, so an input such as a single-letter north token can produce both forms. This deliberately preserves ambiguity rather than assuming every occurrence has only one meaning.

Installed Objects

  • The English configuration combines a thesaurus, synonym dictionary, and stop-word dictionary for address tokens.
  • The French configuration installs the corresponding French text-search objects.
  • Both configurations are copied from PostgreSQL’s simple configuration, so they normalize through the extension’s data files instead of applying a general-language stemmer.

Operational Boundaries

The extension is relocatable and needs no preload or restart. Its dictionary, synonym, stop-word, and thesaurus files must be installed on every server that may execute queries or restore the extension.

Full-text matching is heuristic. Abbreviations can be ambiguous, and nationwide data can produce many false or duplicate candidates. Use it to improve candidate search—especially for a bounded city or region—and retain separate structured-address or geospatial checks when correctness matters.