| Port details |
- postgresql18-client PostgreSQL database (client)
- 18.0_1 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-11-05 10:23:43
- Commit Hash: a626924
- People watching this port, also watch:: postgresql18-contrib, dovecot, postfix, postgresql18-server, mariadb118-server
- 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:
-
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- postgresql18-client>0:databases/postgresql18-client
- Conflicts:
- CONFLICTS:
- To install the port:
- cd /usr/ports/databases/postgresql18-client/ && make install clean
- To add the package, run one of these commands:
- pkg install databases/postgresql18-client
- pkg install postgresql18-client
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: postgresql18-client
- 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):
- Master port: databases/postgresql18-server
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- docbook-xml>0 : textproc/docbook-xml
- docbook-xsl>=0 : textproc/docbook-xsl
- xmllint : textproc/libxml2
- xsltproc : textproc/libxslt
- pkgconf>=1.3.0_1 : devel/pkgconf
- bison : devel/bison
- gmake>=4.4.1 : devel/gmake
- gettext-runtime>=0.22_1 : devel/gettext-runtime
- msgfmt : devel/gettext-tools
- perl5>=5.42.r<5.43 : lang/perl5.42
- Library dependencies:
-
- libzstd.so : archivers/zstd
- libreadline.so.8 : devel/readline
- libintl.so : devel/gettext-runtime
- This port is required by:
- for Libraries
-
- databases/postgresql18-contrib
- databases/postgresql18-pgtcl
- databases/postgresql18-server
Configuration Options:
- ===> The following configuration options are available for postgresql18-client-18.0_1:
DEBUG=off: Build with debugging support
DOCS=on: Build and/or install documentation
GSSAPI=off: Build with GSSAPI from base (security/krb5)
LIBEDIT=off: Use non-GPL libedit instead of readline
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
ZSTD=on: Build with ZSTD compression support
===> Use 'make config' to modify these settings
- Options name:
- databases_postgresql18-client
- USES:
- pkgconfig tar:bzip2 cpe bison perl5 gmake pkgconfig readline 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: 4
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| This is a slave port. You may also want to view the commits to the master port: databases/postgresql18-server | | Commit | Credits | Log message |
18.0_1 05 Nov 2025 10:23:43
    |
Po-Chuan Hsieh (sunpoet)  |
databases/postgresql{13,14,15,16,17,18}-*: Multiple fixes
- Strip shared library and binary executable
- Fix stage-qa
- Bump PORTREVISION for package change
postgresql{13,14,15,16,17,18}-server:
- Clean up Makefile: Remove unnecessary ";\"
- Sort PLIST: share/locale comes before DATADIR (share/postgresql)
postgresql{17,18}-plperl:
- Remove duplicate USES=perl5
- Add missing USE_PERL5=run
from postgresql{17,18}-plperl build log:
====> Running Q/A tests (stage-qa)
Error: /usr/local/lib/postgresql/bool_plperl.so is linked to
/usr/local/lib/perl5/5.40/mach/CORE/libperl.so.5.40 from lang/perl5.40 but it is
not declared as a dependency
PR: 290587
Approved by: girgen |
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_1 11 Sep 2025 12:27:18
    |
Vanilla I. Shu (vanilla)  |
databases/postgresql*-client: install libpgfeutils.a, bump PORTREVISION.
Approved by: girgen@ |
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: 4
|