| Port details |
- postgresql18-server PostgreSQL is the most advanced open-source database available anywhere
- 18.0 databases
=3 18.0Version of this port present on the latest quarterly branch. - Maintainer: pgsql@FreeBSD.org
 - Port Added: 2025-05-08 20:04:08
- Last Update: 2025-09-29 07:02:38
- Commit Hash: 68d8448
- People watching this port, also watch:: postfix, postgresql18-contrib, postgresql18-client, valkey, grafana
- License: PostgreSQL
- WWW:
- https://www.postgresql.org/
- Description:
- PostgreSQL is a sophisticated Object-Relational DBMS, supporting
almost all SQL constructs, including subselects, transactions, and
user-defined types and functions. It is the most advanced open-source
database available anywhere. Commercial Support is also available.
The original Postgres code was the effort of many graduate students,
undergraduate students, and staff programmers working under the direction of
Professor Michael Stonebraker at the University of California, Berkeley. In
1995, Andrew Yu and Jolly Chen took on the task of converting the DBMS query
language to SQL and created a new database system which came to known as
Postgres95. Many others contributed to the porting, testing, debugging and
enhancement of the Postgres95 code. As the code improved, and 1995 faded into
memory, PostgreSQL was born.
PostgreSQL development is presently being performed by a team of Internet
developers who are now responsible for all current and future development. The
development team coordinator is Marc G. Fournier (scrappy@PostgreSQL.ORG).
Support is available from the PostgreSQL developer/user community through the
support mailing list (questions@PostgreSQL.ORG).
PostgreSQL is free and the complete source is available.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
-
- Dependency lines:
-
- postgresql18-server>0:databases/postgresql18-server
- Conflicts:
- CONFLICTS:
- To install the port:
- cd /usr/ports/databases/postgresql18-server/ && make install clean
- To add the package, run one of these commands:
- pkg install databases/postgresql18-server
- pkg install postgresql18-server
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: postgresql18-server
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1758615221
SHA256 (postgresql/postgresql-18.0.tar.bz2) = 0d5b903b1e5fe361bca7aa9507519933773eb34266b1357c4e7780fdee6d6078
SIZE (postgresql/postgresql-18.0.tar.bz2) = 22412570
Packages (timestamps in pop-ups are UTC):
- Slave ports:
-
- databases/postgresql18-client
- databases/postgresql18-contrib
- databases/postgresql18-docs
- databases/postgresql18-plperl
- databases/postgresql18-plpython
- databases/postgresql18-pltcl
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- bison : devel/bison
- gmake>=4.4.1 : devel/gmake
- pkgconf>=1.3.0_1 : devel/pkgconf
- gettext-runtime>=0.22_1 : devel/gettext-runtime
- msgfmt : devel/gettext-tools
- perl5>=5.42.r<5.43 : lang/perl5.42
- Library dependencies:
-
- libicudata.so : devel/icu
- liblz4.so : archivers/liblz4
- libxml2.so : textproc/libxml2
- libzstd.so : archivers/zstd
- libpq.so.5 : databases/postgresql18-client
- libLLVM-19.so : devel/llvm19
- libintl.so : devel/gettext-runtime
- This port is required by:
- for Build
-
- databases/postgresql18-plpython
- databases/postgresql18-pltcl
- for Run
-
- databases/postgresql18-plperl
- databases/postgresql18-plpython
- databases/postgresql18-pltcl
Configuration Options:
- ===> The following configuration options are available for postgresql18-server-18.0:
DEBUG=off: Build with debugging support
DOCS=on: Build and/or install documentation
DTRACE=off: Build with DTrace probes
GSSAPI=off: Build with GSSAPI from base (security/krb5)
LDAP=off: Build with LDAP authentication support
LLVM=on: Build with support for JIT-compiling expressions
LZ4=on: Build with LZ4 compression support
NLS=on: Use internationalized messages
OPTIMIZED_CFLAGS=off: Builds with compiler optimizations (-O3)
PAM=off: Build with PAM Support
SSL=on: Build with OpenSSL support
TZDATA=off: Use internal timezone database
XML=on: Build with XML data type
ZSTD=on: Build with ZSTD compression support
===> Use 'make config' to modify these settings
- Options name:
- databases_postgresql18-server
- USES:
- tar:bzip2 cpe bison perl5 gmake pgsql:18 pkgconfig pkgconfig llvm:min=11,lib gettext ssl
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
| Notes from UPDATING |
- These upgrade notes are taken from /usr/ports/UPDATING
- 2025-05-06
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 16 to 17.
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 16, your
files are named according to this.
# service postgresql stop
# pkg create postgresql16-server postgresql16-contrib
# mkdir /tmp/pg-upgrade
# tar xf postgresql16-server-16.8.pkg -C /tmp/pg-upgrade
# tar xf postgresql16-contrib-16.8.pkg -C /tmp/pg-upgrade
# pkg delete -f databases/postgresql16-server databases/postgresql16-contrib databases/postgresql16-client
Now update PostgreSQL:
pkg user:
# pkg install databases/postgresql17-server databases/postgresql17-contrib
# pkg upgrade
Portmaster users:
# portmaster databases/postgresql17-server databases/postgresql17-contrib
# portmaster -a
Portupgrade users:
# portinstall databases/postgresql17-server databases/postgresql17-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/data17 -U postgres"
# su -l postgres -c "pg_upgrade -b /tmp/pg-upgrade/usr/local/bin/ -d /var/db/postgres/data16/ -B /usr/local/bin/ -D /var/db/postgres/data17/ -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: 7
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| Commit | Credits | Log message |
18.0 29 Sep 2025 07:02:38
    |
Palle Girgensohn (girgen)  |
databases/postgresql18-*: Update to 18.0
PostgreSQL 18 improves performance for workloads of all sizes through a
new I/O subsystem that has demonstrated up to 3× performance
improvements when reading from storage, and also increases the number of
queries that can use indexes. This release makes major-version upgrades
less disruptive, accelerating upgrade times and reducing the time
required to reach expected performance after an upgrade completes.
Developers also benefit from PostgreSQL 18 features, including virtual
generated columns that compute values at query time, and the
database-friendly uuidv7() function that provides better indexing and
read performance for UUIDs. PostgreSQL 18 makes it easier to integrate
with single-sign on (SSO) systems with support for OAuth 2.0
authentication.
Release
notes: https://www.postgresql.org/about/news/postgresql-18-released-3142/ |
18.r1 11 Sep 2025 12:27:18
    |
Vanilla I. Shu (vanilla)  |
databases/postgresql*-client: install libpgfeutils.a, bump PORTREVISION.
Approved by: girgen@ |
18.r1 04 Sep 2025 13:57:26
    |
Palle Girgensohn (girgen)  |
databases/postgresql18: Upgrade to RC 1
The PostgreSQL Global Development Group announces that the first release
candidate of PostgreSQL 18 is now available for download. As a release
candidate, PostgreSQL 18 RC 1 will be mostly identical to the initial
release of PostgreSQL 18, though some more fixes may be applied prior to
the general availability of PostgreSQL 18.
The planned date for the general availability of PostgreSQL 18 is
September 25, 2025. Please see the "Release Schedule" section for more
details.
To upgrade to PostgreSQL 18 RC 1 from earlier versions of PostgreSQL,
you will need to use a major version upgrade strategy, e.g. pg_upgrade
or pg_dump / pg_restore. For more information, please visit the
documentation section on upgrading:
https://www.postgresql.org/docs/18/upgrading.html
Release notes:
- https://www.postgresql.org/about/news/postgresql-18-rc-1-released-3130/
- https://www.postgresql.org/docs/18/release-18.html |
18.b3 14 Aug 2025 14:10:17
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: Update to latest versions
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 17.6, 16.10, 15.14, 14.19,
and 13.22, as well as the third beta release of PostgreSQL 18. This
release fixes 3 security vulnerabilities and over 55 bugs reported over
the last several months.
If you previously created a BRIN index using the
numeric_minmax_multi_ops operator class, please see the "Updating"
section for additional instructions after upgrading your instance.
For the full list of changes, please review the release notes.
Build client with ZSTD default [1].
Support promote and logrotate commans in RC-script. [2]
PR: 287225 [1], 288836 [2]
Security: fc048b51-7909-11f0-90a2-6cc21735f730
Release
notes: https://www.postgresql.org/about/news/postgresql-176-1610-1514-1419-1322-and-18-beta-3-released-3118/ |
18.b2 07 Aug 2025 12:25:19
    |
Palle Girgensohn (girgen)  |
databases/postgresql1?-contrib: Fix plist issue for openssl=off
When OPENSSL=off, pgcrypto was not built but existed unconditionally in
the plist.
Noted by: Andrea Venturoli |
18.b2 05 Aug 2025 22:13:56
    |
Palle Girgensohn (girgen)  |
databases/postgresql18: Update to 18 beta 2
Release
notes: https://www.postgresql.org/about/news/postgresql-18-beta-2-released-3103/ |
18.b1 08 May 2025 20:00:15
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: Update to latest version
PostgreSQL 17.5, 16.9, 15.13, 14.18, and 13.21 Released!
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 17.5, 16.9, 15.13, 14.18,
and 13.21. This release fixes 1 security vulnerability and over 60 bugs
reported over the last several months.
Security: 78b8e808-2c45-11f0-9a65-6cc21735f730
Release
notes: https://www.postgresql.org/about/news/postgresql-175-169-1513-1418-and-1321-released-3072/ |
Number of commits found: 7
|