Port details |
- postgresql-prefix Prefix Range module for PostgreSQL
- 1.2.10 databases =2 1.2.10Version of this port present on the latest quarterly branch.
- Maintainer: lbartoletti@FreeBSD.org
- Port Added: 2018-12-14 19:39:56
- Last Update: 2024-06-05 18:01:44
- Commit Hash: 0c57830
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- License: PostgreSQL
- WWW:
- https://github.com/dimitri/prefix
- 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;
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- postgresql15-prefix>0:databases/postgresql-prefix
- To install the port:
- cd /usr/ports/databases/postgresql-prefix/ && make install clean
- To add the package, run one of these commands:
- pkg install databases/postgresql-prefix
- pkg install postgresql15-prefix
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: postgresql15-prefix
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1716275243
SHA256 (dimitri-prefix-v1.2.10_GH0.tar.gz) = 4342f251432a5f6fb05b8597139d3ccde8dcf87e8ca1498e7ee931ca057a8575
SIZE (dimitri-prefix-v1.2.10_GH0.tar.gz) = 75654
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gmake>=4.4.1 : devel/gmake
- postgres : databases/postgresql15-server
- Runtime dependencies:
-
- postgres : databases/postgresql15-server
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for postgresql15-prefix-1.2.10:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
- Options name:
- databases_postgresql-prefix
- USES:
- gmake pgsql:11+
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Notes from UPDATING |
- These upgrade notes are taken from /usr/ports/UPDATING
- 2024-07-23
Affects: users of databases/postgresql* and other software using PostgreSQL to run Author: kbowling@FreeBSD.org Reason:
The default version of PostgreSQL has been switched from 15 to 16.
The upgrade procedure can use up twice the space the databases
currently needs. If you have a big amount of stored data take a
closer look at the manpage of pg_upgrade for avoidance and/or
speedup of the upgrade.
The upgrade instructions consider a basic usage and do not match
complex scenarios like replication, sharding, or similar.
Upgrade instructions:
First stop your PostgreSQL, create PostgreSQL-binaries and backup your data.
If you have another Version of PostgreSQL installed, for example 15, your
files are named according to this.
# service postgresql stop
# pkg create postgresql15-server postgresql15-contrib
# mkdir /tmp/pg-upgrade
# tar xf postgresql15-server-15.7.pkg -C /tmp/pg-upgrade
# tar xf postgresql15-contrib-15.7.pkg -C /tmp/pg-upgrade
# pkg delete -f databases/postgresql15-server databases/postgresql15-contrib databases/postgresql15-client
Now update PostgreSQL:
pkg user:
# pkg install databases/postgresql16-server databases/postgresql16-contrib
# pkg upgrade
Portmaster users:
# portmaster databases/postgresql16-server databases/postgresql16-contrib
# portmaster -a
Portupgrade users:
# portinstall databases/postgresql16-server databases/postgresql16-contrib
# portupgrade -a
After installing the new PostgreSQL version you need to convert
all your databases to new version:
# su -l postgres -c "/usr/local/bin/initdb --encoding=utf-8 --lc-collate=C -D /var/db/postgres/data16 -U postgres"
# su -l postgres -c "pg_upgrade -b /tmp/pg-upgrade/usr/local/bin/ -d /var/db/postgres/data15/ -B /usr/local/bin/ -D /var/db/postgres/data16/ -U postgres "
Now the migration is finished. You can start PostgreSQL again with:
# service postgresql start
ATTENTION:
1) If you use non-default initdb options, you have to adjust the initdb-command accordingly
|
Number of commits found: 10
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1.2.10 05 Jun 2024 18:01:44 |
Kevin Bowling (kbowling) |
databases/postgresql-prefix: Update to 1.2.10
PR: 279193
Approved by: maintainer timeout |
1.2.9 15 Apr 2023 13:14:58 |
Muhammad Moinur Rahman (bofh) |
*/*: Remove pointers to EOLed pgsql versions
- Remove dotted pgsql versions
Approved by: portmgr |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
1.2.9 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
1.2.9 07 Apr 2021 08:09:01 |
Mathieu Arnold (mat) |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
1.2.9 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
1.2.9 14 Jan 2020 21:45:15 |
lbartoletti |
Change my mail address to lbartoletti@FreeBSD.org
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D23169 |
1.2.9 28 Jul 2019 16:13:28 |
kai |
databases/postgresql-prefix: Update to 1.2.9
* Pet portlint by fixing whitespace issues in pkg-plist while I'm here.
Changelog:
* Add support for PostgreSQL 12
PR: 239452
Submitted by: lbartoletti <lbartoletti@tuxfamily.org> (maintainer) |
1.2.8_1 26 Jul 2019 20:46:57 |
gerald |
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330 |
1.2.8 14 Dec 2018 19:39:39 |
dbn |
databases/portsgresql-prefix: Prefix Range module for PostgreSQL |
Number of commits found: 10
|