BSD Ports

databases/postgresql-prefix 1.2.10 FreeBSD

Prefix Range module for PostgreSQL

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
PostgreSQL
Categories
databases
Package size
17.0 KiB, 51.6 KiB installed

Description

Prefix matching is both very common and important in telephony applications, where call routing and costs depend on matching caller/callee phone number to an operator prefix.

Let's say the prefixes table is called prefixes, a typical query will try to match a phone number to the longest prefix in the table:

SELECT * FROM prefixes WHERE prefix @> '0123456789' ORDER BY length(prefix) DESC LIMIT 1;

In the other systems

SystemPortVersion
FreeBSDdatabases/postgresql-prefix1.2.10
DragonFlydatabases/postgresql-prefix1.2.10
MidnightBSDdatabases/postgresql-prefix1.2.10_1
HardenedBSDdatabases/postgresql-prefix1.2.10
GhostBSDdatabases/postgresql-prefix1.2.10

Install

Binary package:

pkg install postgresql18-prefix

From the ports tree:

cd /usr/ports/databases/postgresql-prefix/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	postgresql18-prefix>0:databases/postgresql-prefix

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.101.2.101.2.91.2.101.2.10
FreeBSD:14:quarterly1.2.101.2.10n/a1.2.101.2.10
FreeBSD:15:latest1.2.101.2.10n/a1.2.101.2.10
FreeBSD:15:quarterly1.2.101.2.10n/an/an/a
FreeBSD:16:latest1.2.101.2.10n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 11
Run dependencies 10

No port depends on this one.

Configuration

Options name: databases_prefix

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
gmake pgsql:11+
Service scripts
none

Files

pkg-plist 7
  • lib/postgresql/prefix.so
  • share/doc/postgresql18-prefix/README.md
  • share/doc/postgresql18-prefix/TESTS.md
  • share/postgresql/extension/prefix--1.1--1.2.0.sql
  • share/postgresql/extension/prefix--1.2.0.sql
  • share/postgresql/extension/prefix--unpackaged--1.2.0.sql
  • share/postgresql/extension/prefix.control
distinfo 1
FileSizeSHA256
dimitri-prefix-v1.2.10_GH0.tar.gz756544342f251432a5f6fb05b8597139d3ccde8dcf87e8ca1498e7ee931ca057a8575

Commit history 0

No commits in the history this site was built from.