- postgresql13-server PostgreSQL is the most advanced open-source database available anywhere
- 13.1 databases =3 13.0_2Version of this port present on the latest quarterly branch.
- Maintainer: pgsql@FreeBSD.org
- Port Added: 2020-09-24 13:33:22
- Last Update: 2020-11-12 15:00:40
- SVN Revision: 554966
People watching this port, also watch: smartmontools, dovecot, bind916, php74, pkg
- License: PostgreSQL
- 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.
- SVNWeb : Homepage
- pkg-plist: as obtained via:
- Dependency lines:
- Conflicts Matches:
There are no Conflicts Matches for this port. This is usually an error.
Packages: (move your mouse over the cells for more information)
- To install the port:
cd /usr/ports/databases/postgresql13-server/ && make install clean
- To add the package:
pkg install postgresql13-server
- PKGNAME: postgresql13-server
- Flavors: there is no flavor information for this port.
- TIMESTAMP = 1605002533
SHA256 (postgresql/postgresql-13.1.tar.bz2) = 12345c83b89aa29808568977f5200d6da00f88a035517f925293355432ffe61f
SIZE (postgresql/postgresql-13.1.tar.bz2) = 21034192
- Slave ports
- 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
- msgfmt : devel/gettext-tools
- llvm90>0 : devel/llvm90
- llvm-config90 : devel/llvm90
- Runtime dependencies:
- llvm-config90 : devel/llvm90
- Library dependencies:
- libicudata.so : devel/icu
- libpq.so.5 : databases/postgresql13-client
- libintl.so : devel/gettext-runtime
- This port is required by:
- for Build
- for Run
- Configuration Options
- ===> The following configuration options are available for postgresql13-server-13.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
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
===> Use 'make config' to modify these settings
- tar:bzip2 cpe gmake pgsql:13 pkgconfig gettext ssl compiler
- Master Sites:
|Notes from UPDATING
These upgrade notes are taken from /usr/ports/UPDATING|
Affects: users of databases/postgresql* and other software using PostgreSQL to run
The default version of PostgreSQL has been switched from 11 to 12.
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.
First stop your PostgreSQL, create PostgreSQL-binaries and backup your data.
If you have another Version of PostgreSQL installed, for example 11.9, your
files are named according to this.
# service postgresql stop
# pkg create postgresql11-server postgresql11-contrib
# mkdir /tmp/pg-upgrade
# tar xf postgresql11-server-11.9.txz -C /tmp/pg-upgrade
# tar xf postgresql11-contrib-11.9.txz -C /tmp/pg-upgrade
# pkg delete -f databases/postgresql11-server databases/postgresql11-contrib databases/postgresql11-client
Now update PostgreSQL:
# pkg install databases/postgresql12-server databases/postgresql12-contrib
# pkg upgrade
# portmaster databases/postgresql12-server databases/postgresql12-contrib
# portmaster -a
# portinstall databases/postgresql12-server databases/postgresql12-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/data12 -U postgres"
# su -l postgres -c "pg_upgrade -b /tmp/pg-upgrade/usr/local/bin/ -d /var/db/postgres/data11/ -B /usr/local/bin/ -D /var/db/postgres/data12/ -U postgres "
Now the migration is finished. You can start PostgreSQL again with:
# service postgresql start
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: 11
|Commit History - (may be incomplete: see SVNWeb link above for full details)
|12 Nov 2020 15:00:40
PostgreSQL 13.1, 12.5, 11.10, 10.15, 9.6.20 released!
The PostgreSQL Global Development Group has released an update to all supported
versions of our database system, including 13.1, 12.5, 11.10, 10.15 and 9.6.20.
This release closes three security vulnerabilities and fixes over 65 bugs
reported over the last three months.
Due to the nature of CVE-2020-25695, we advise you to update as soon as
Additionally, this is the second-to-last release of PostgreSQL 9.5. If you are
running PostgreSQL 9.5 in a production environment, we suggest that you make
plans to upgrade.
For the full list of changes, please review the release notes.
Security: CVE-2020-25695: Multiple features escape "security restricted
Security: CVE-2020-25694: Reconnection can downgrade connection security
Security: CVE-2020-25696: psql's \gset allows overwriting specially
|03 Nov 2020 00:56:27
devel/icu: update to 68.1
Reported by: GitHub (watch releases)
|14 Oct 2020 21:18:57
Fix options breakage from r551702.
Make LLVM option work again on everything but powerpc64.
Submitted by: Christian Ullrich
|13 Oct 2020 09:57:37
Fix PLIST when building with local timezone data
Submitted by: O. Hartmann
|08 Oct 2020 12:13:10
databases/postgresql13-server: make LLVM option unselectable
This will still keep this port and its slaves buildable on the package builder
on powerpc64, and I doubt anyone uses it on mips*.
Reported by: kib@, adamw@
|07 Oct 2020 20:53:25
databases/postgresql13-server: fix build on clang architectures
Move LLVM option configuration after including bsd.port.options.mk.
Reported by: kib@
|07 Oct 2020 13:06:19
databases/postgresql13-server: fix build on GCC architectures
Add the previously removed disabling of LLVM when it's not in base.
|30 Sep 2020 20:52:17
Try to fix build on recent FreeBSD versions where clang version > llvm default
ports version. Fix this by depending on a higher version of llvm if such a
version exixts, and otherwise use a clang version compatible with the latest
Using llvm was previously dependant on clang being used, and this did not quite
work for all cases due to some weird order of variables in the Makefile. The
result was that the option set by the used was not really honored. The
portrevision is bumped to reflect that the setting of LLVM might not have
worked before this portrevison.
|27 Sep 2020 20:17:58
Fix building with LLVM
Fix a plist issue .
Make sure the LLVM options are correctly handled. Setting the OPTIONS_DEFAULT
conditionally based on wheather the default compiler is cland doesn't work
properly, it is always set even if you deselect it. Just setting it per default
seems to work better.
Attempt a fix for building on FreeBSD-13.0 where clang is newer than the
default LLVM. First attempt is to use an lower version clang to match what LLVM
has as default. 
PR: 244403 , 249933 , 249875 
|25 Sep 2020 16:23:44
Fix datadir 12->13
Submitted by: Raivo Hool
|24 Sep 2020 13:33:10
Welcome PostgreSQL 13
Release notes: https://www.postgresql.org/about/news/2077/
Number of commits found: 11
9 vulnerabilities affecting 54 ports have been reported in the past 14 days
* - modified, not new