Port details |
- postgresql16-server PostgreSQL is the most advanced open-source database available anywhere
- 16.1_1 databases
=2 16.0Version of this port present on the latest quarterly branch. - Maintainer: pgsql@FreeBSD.org
 - Port Added: 2023-07-05 14:15:11
- Last Update: 2023-11-17 11:46:00
- Commit Hash: e55b801
- People watching this port, also watch:: libjxl, tcpdump, ratproxy, tmux
- 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 - Dependency lines:
-
- postgresql16-server>0:databases/postgresql16-server
- Conflicts:
- CONFLICTS:
- Conflicts Matches:
-
There are no Conflicts Matches for this port. This is usually an error.
- To install the port:
- cd /usr/ports/databases/postgresql16-server/ && make install clean
- To add the package, run one of these commands:
- pkg install databases/postgresql16-server
- pkg install postgresql16-server
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: postgresql16-server
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1699348859
SHA256 (postgresql/postgresql-16.1.tar.bz2) = ce3c4d85d19b0121fe0d3f8ef1fa601f71989e86f8a66f7dc3ad546dd5564fec
SIZE (postgresql/postgresql-16.1.tar.bz2) = 24605482
Packages (timestamps in pop-ups are UTC):
- Slave ports:
-
- databases/postgresql16-client
- databases/postgresql16-contrib
- databases/postgresql16-docs
- databases/postgresql16-plperl
- databases/postgresql16-plpython
- databases/postgresql16-pltcl
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gmake>=4.3 : devel/gmake
- pkgconf>=1.3.0_1 : devel/pkgconf
- gettext-runtime>=0.22_1 : devel/gettext-runtime
- msgfmt : devel/gettext-tools
- Library dependencies:
-
- libicudata.so : devel/icu
- liblz4.so : archivers/liblz4
- libzstd.so : archivers/zstd
- libpq.so.5 : databases/postgresql16-client
- libLLVM-15.so : devel/llvm15
- libintl.so : devel/gettext-runtime
- This port is required by:
- for Build
-
- databases/postgresql16-plpython
- databases/postgresql16-pltcl
- for Run
-
- databases/postgresql16-plperl
- databases/postgresql16-plpython
- databases/postgresql16-pltcl
Configuration Options:
- ===> The following configuration options are available for postgresql16-server-16.1_1:
DEBUG=off: Build with debugging support
DOCS=on: Build and/or install documentation
DTRACE=off: Build with DTrace probes
GSSAPI=off: Build with GSSAPI support
INTDATE=on: Builds with 64-bit date/time type
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=off: Build with XML data type
ZSTD=on: Build with ZSTD compression support
===> Use 'make config' to modify these settings
- Options name:
- databases_postgresql16-server
- USES:
- tar:bzip2 cpe gmake pgsql:16 pkgconfig llvm:max=15,min=11,lib gettext ssl
- pkg-message:
- For install:
- For procedural languages and postgresql functions, please note that
you might have to update them when updating the server.
If you have many tables and many clients running, consider raising
kern.maxfiles using sysctl(8), or reconfigure your kernel
appropriately.
The port is set up to use autovacuum for new databases, but you might
also want to vacuum and perhaps backup your database regularly. There
is a periodic script, /usr/local/etc/periodic/daily/502.pgsql, that
you may find useful. You can use it to backup and perform vacuum on all
databases nightly. Per default, it performs `vacuum analyze'. See the
script for instructions. For autovacuum settings, please review
~postgres/data/postgresql.conf.
If you plan to access your PostgreSQL server using ODBC, please
consider running the SQL script /usr/local/share/postgresql/odbc.sql
to get the functions required for ODBC compliance.
Please note that if you use the rc script,
/usr/local/etc/rc.d/postgresql, to initialize the database, unicode
(UTF-8) will be used to store character data by default. Set
postgresql_initdb_flags or use login.conf settings described below to
alter this behaviour. See the start rc script for more info.
To set limits, environment stuff like locale and collation and other
things, you can set up a class in /etc/login.conf before initializing
the database. Add something similar to this to /etc/login.conf:
---
postgres:\
:lang=en_US.UTF-8:\
:setenv=LC_COLLATE=C:\
:tc=default:
---
and run `cap_mkdb /etc/login.conf'.
Then add 'postgresql_login_class="postgres"' to /etc/rc.conf.
======================================================================
To initialize the database, run
/usr/local/etc/rc.d/postgresql initdb
You can then start PostgreSQL by running:
/usr/local/etc/rc.d/postgresql start
For postmaster settings, see ~postgres/data/postgresql.conf
NB. FreeBSD's PostgreSQL port logs to syslog by default
See ~postgres/data/postgresql.conf for more info
NB. If you're not using a checksumming filesystem like ZFS, you might
wish to enable data checksumming. It can be enabled during
the initdb phase, by adding the "--data-checksums" flag to
the postgresql_initdb_flags rcvar. Otherwise you can enable it later by
pg_checksums. Check the initdb(1) manpage for more info
and make sure you understand the performance implications.
======================================================================
To run PostgreSQL at startup, add
'postgresql_enable="YES"' to /etc/rc.conf
- Master Sites:
|
Notes from UPDATING |
- These upgrade notes are taken from /usr/ports/UPDATING
- 2023-09-08
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 13 to 15.
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 13, your
files are named according to this.
# service postgresql stop
# pkg create postgresql13-server postgresql13-contrib
# mkdir /tmp/pg-upgrade
# tar xf postgresql13-server-13.12.pkg -C /tmp/pg-upgrade
# tar xf postgresql13-contrib-13.12.pkg -C /tmp/pg-upgrade
# pkg delete -f databases/postgresql13-server databases/postgresql13-contrib databases/postgresql13-client
Now update PostgreSQL:
pkg user:
# pkg install databases/postgresql15-server databases/postgresql15-contrib
# pkg upgrade
Portmaster users:
# portmaster databases/postgresql15-server databases/postgresql15-contrib
# portmaster -a
Portupgrade users:
# portinstall databases/postgresql15-server databases/postgresql15-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/data15 -U postgres"
# su -l postgres -c "pg_upgrade -b /tmp/pg-upgrade/usr/local/bin/ -d /var/db/postgres/data13/ -B /usr/local/bin/ -D /var/db/postgres/data15/ -U postgres "
Now the migration is finished. You can start PostgreSQL again with:
# service postgresql start
ATTENTION:
1) The default user changed from "pgsql" to "postgres" in 11. The migration steps above now assume
the "postgres" database user and FreeBSD user.
2) See the updating entry 20190829 if you are updating from a release prior to 11.
3) If you use non-default initdb options, you have to adjust the initdb-command accordingly
|
Number of commits found: 8
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
16.1_1 17 Nov 2023 11:46:00
    |
Jan Beich (jbeich)  |
devel/icu: update to 74.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-74-1
Reported by: GitHub (watch releases)
PR: 274317
Exp-run by: antoine (incomplete)
Approved by: fluffy |
16.1 09 Nov 2023 15:09:19
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: update to latest version
PostgreSQL 16.1, 15.5, 14.10, 13.13, 12.17, and 11.22 Released!
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 16.1, 15.5, 14.10, 13.13,
12.17, and 11.22 This release fixes three security vulnerabilities and
over 55 bugs reported over the last several months.
Release
notes: https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749/
Security: CVE-2023-5868, CVE-2023-5869, CVE-2023-5870
Security: 31f45d06-7f0e-11ee-94b4-6cc21735f730
Security: 0f445859-7f0e-11ee-94b4-6cc21735f730
Security: bbb18fcb-7f0d-11ee-94b4-6cc21735f730 |
16.0 14 Sep 2023 15:50:28
    |
Palle Girgensohn (girgen)  |
databases/postgresql16-*: Update to 16.0
The PostgreSQL Global Development Group today announced the release of
PostgreSQL 16, the latest version of the world's most advanced open
source database.
PostgreSQL 16 raises its performance, with notable improvements to query
parallelism, bulk data loading, and logical replication. There are many
features in this release for developers and administrators alike,
including more SQL/JSON syntax, new monitoring stats for your workloads,
and greater flexibility in defining access control rules for management
of policies across large fleets.
Read about more improvements in the release notes, for example about
Performance Improvements, Logical replication, Developer Experience,
Access Control & Security and Monitoring.
Release
notes: https://www.postgresql.org/about/news/postgresql-16-released-2715/ |
16.r1 31 Aug 2023 13:54:38
    |
Palle Girgensohn (girgen)  |
databases/postgresql16-*: update to 16rc1
Release
notes: https://www.postgresql.org/about/news/postgresql-16-rc1-released-2702/ |
16.b3 10 Aug 2023 14:13:24
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: Update to latest versions.
PostgreSQL 15.4, 14.9, 13.12, 12.16, 11.21, and PostgreSQL 16 Beta 3
Released.
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 15.4, 14.9, 13.12, 12.16,
and 11.21, as well as the third beta release of PostgreSQL 16. This
release fixes two security vulnerabilities and over 40 bugs reported
over the last several months.
If you use BRIN indexes to look up NULL values, you will need to reindex
them after upgrading to this release. On PostgreSQL 12 and above, you
can use REINDEX CONCURRENTLY to avoid blocking writes to the affected
index and table, for example:
REINDEX INDEX CONCURRENTLY your_index_name;
Also, remove the patch for postgresql.conf.sample suggesting to turn off
update_process_title [1], since it is no longer a problem.
Release
notes: https://www.postgresql.org/about/news/postgresql-154-149-1312-1216-1121-and-postgresql-16-beta-3-released-2689/
[1]: https://commitfest.postgresql.org/19/1715/ |
16.b2 05 Jul 2023 14:13:08
    |
Palle Girgensohn (girgen)  |
databases/postgresql16-*: update to 16.beta2
Release
notes: https://www.postgresql.org/about/news/postgresql-16-beta-2-released-2665/ |
16.b1 05 Jul 2023 14:12:20
    |
Palle Girgensohn (girgen)  |
databases/postgresql15-server: fix build with clang 16 (as system compiler)
databases/postgresql??-server: use the default LLVM
Always use the version of LLVM that is default for the ports tree,
if PostgreSQL builds with it. This simplifies the build process.
For i386, revert to using clang -msse2 instead of pulling in gcc. CPUs
older than Pentium5 do not support SSE2 and the binary will not run
there. We are not expected to support ancient hardware forever, so I've
added a comment recommending users of ancient CPUs to build from ports
using gcc.
During an exp-run for llvm 16 (see bug 271047), it turned out that
databases/postgresql15-server failed to build with clang 16 as the base (Only the first 15 lines of the commit message are shown above ) |
16.b1 05 Jul 2023 14:11:39
    |
Palle Girgensohn (girgen)  |
databases/postgresql16-*: Introduce postgresql16 beta 1
URL: https://www.postgresql.org/about/news/postgresql-16-beta-1-released-2643/
Release notes: https://www.postgresql.org/docs/16/release-16.html |
Number of commits found: 8
|