Port details |
- postgresql13-server PostgreSQL is the most advanced open-source database available anywhere
- 13.9_1 databases
=6 Version of this port present on the latest quarterly branch. - Maintainer: pgsql@FreeBSD.org
 - Port Added: 2020-09-24 13:33:22
- Last Update: 2022-11-15 15:40:59
- Commit Hash: d512e8c
- People watching this port, also watch:: apache24, nginx, postfix, curl, firefox-esr
- License: PostgreSQL
- 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.
¦ ¦ ¦ ¦ 
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- postgresql13-server>0:databases/postgresql13-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/postgresql13-server/ && make install clean
- To add the package, run one of these commands:
- pkg install databases/postgresql13-server
- pkg install postgresql13-server
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: postgresql13-server
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1667925759
SHA256 (postgresql/postgresql-13.9.tar.bz2) = ef1966c0a5e49fbed3370ad2824928cb6b1164617aeeae1606da283f7f33a415
SIZE (postgresql/postgresql-13.9.tar.bz2) = 21439045
Packages (timestamps in pop-ups are UTC):
- Slave ports:
-
- databases/postgresql13-client
- databases/postgresql13-contrib
- databases/postgresql13-docs
- databases/postgresql13-plperl
- databases/postgresql13-plpython
- databases/postgresql13-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
- 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
-
- databases/pg_citus
- databases/pg_dirtyread
- databases/pg_ed25519
- databases/pg_filedump
- databases/pg_hashids
- databases/pg_partman
- databases/pg_qualstats
-
Deleted ports which required this port:
- for Run
-
- databases/pg_citus
- databases/pg_dirtyread
- databases/pg_ed25519
- databases/pg_filedump
- databases/pg_hashids
- databases/pg_partman
- databases/pg_qualstats
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- ===> The following configuration options are available for postgresql13-server-13.9_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
- Options name:
- databases_postgresql13-server
- USES:
- tar:bzip2 cpe gmake pgsql:13 pkgconfig gettext ssl compiler
- 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_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
- WWW: https://www.postgresql.org/
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
13.9_1 15 Nov 2022 15:40:59
    |
Dmitry Marakasov (amdmi3)  |
databases/postgresql*-server: require mountlate in rc.d scripts
PostgreSQL server may use late-mounted filesystems, so require these
in rc.d scripts. Real life example is when /tmp is late-mounted tmpfs
atop of ZFS, and if posgresql-server starts before mountlate, its
socket which resides on /tmp is hidden under tmpfs which is mounted
afterwards.
PR: 267500
Approved by: maintainer timeout (pgsql, 2 weeks) |
13.9 10 Nov 2022 16:23:11
    |
Palle Girgensohn (girgen)  |
databases/postgresq??-*: update to latest version
PostgreSQL 15.1, 14.6, 13.9, 12.13, 11.18, and 10.23 Released!
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 15.1, 14.6, 13.9, 12.13,
11.18, and 10.23. This release fixes 25 bugs reported over the last
several months.
This is the final release of PostgreSQL 10. PostgreSQL 10 will no longer
receive security and bug fixes. If you are running PostgreSQL 10 in a
production environment, we suggest that you make plans to upgrade.
Release notes: https://www.postgresql.org/docs/release/ |
13.8_1 19 Oct 2022 08:10:29
    |
Jan Beich (jbeich)  |
devel/icu: update to 72.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-72-1
Reported by: GitHub (watch releases)
PR: 266582
Exp-run by: antoine |
13.8 03 Oct 2022 08:29:02
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-server: fix bad PLIST substitutions
Noted by: sunpoet@ |
13.8 14 Sep 2022 04:10:22
    |
Alexey Dokuchaev (danfe)  |
databases/postgresql*-server: fix minor style bugs in maintenance script
Convert to ASCII and trim EOL whitespace. The scripts are now identical
across all PostgreSQL server versions we have in the ports.
Verified by: cksum(1) |
13.8 10 Sep 2022 17:41:16
    |
Stefan Eßer (se)  Author: Tobias Kortkamp |
Fix WWW in parent/child ports
Many of the WWW are overwritten later which means the wrong value
is used. This did not happen before where the children were either
a) just using the pkg-descr from the parents
b) or had their own separate pkg-descr with custom WWW
Use WWW?= in parents when the child's WWW is different.
Children that use the same WWW as the parent can just inherit it,
i.e., the child WWW can be removed.
Approved by: portmgr (implicit) |
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) |
13.8 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 ) |
13.8 12 Aug 2022 09:05:24
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: Update to latest version
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 14.5, 13.8, 12.12, 11.17,
and 10.22, as well as the third beta release of PostgreSQL 15. This
release closes one security vulnerability and fixes over 40 bugs
reported over the last three months.
PostgreSQL 10 will stop receiving fixes on November 10, 2022. If you are
running PostgreSQL 10 in a production environment, we strongly advise
that you make plans to upgrade to a newer, supported version of
PostgreSQL so you can continue to receive bug and security fixes.
Security: CVE-2022-2625
Release
notes: https://www.postgresql.org/about/news/postgresql-145-138-1212-1117-1022-and-15-beta-3-released-2496/ |
13.7_1 20 Jul 2022 14:21:07
    |
Tobias C. Berner (tcberner)  |
databases: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Choe, Cheng-Dae" whitekid
* "Mahdi Mokhtari <mokhi64@gmail.com>"
* "Meikel Brandmeyer" <ocaml-sqlite3-port@kotka.de>
* <hvo.pm@xs4all.nl>
* <jsmith@resonatingmedia.com>
* <ports@c0decafe.net>
* Aaron Dalton <aaron@FreeBSD.org>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Snelson <Alan@Wave2.org> (Only the first 15 lines of the commit message are shown above ) |
13.7_1 23 May 2022 10:46:14
    |
Palle Girgensohn (girgen)  |
postgresql??-server: fix regression in the rc script
The rc script was converted to use a SUB_LIST variable, but I failed to
introduce the variable correctly in the Makefile. [1]
The plist for postgresql15-server was incorrect. Fixed this as well.
PR: 264097 [1] |
13.7 19 May 2022 13:36:48
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: add postgresql-15 to the ports tree
Introduce PostgreSQL-15 to the ports tree.
Make version 15 the master port, and add plist parameter for the
postgresql version.
Release notes: https://www.postgresql.org/docs/devel/release.html |
13.7 12 May 2022 13:41:07
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-server: update to latest version
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 14.3, 13.7, 12.11, 11.16,
and 10.21. This release fixes over 50 bugs reported over the last three
months. This release closes one security vulnerability and fixes over 50
bugs reported over the last three months.
We encourage you to install this update at your earliest possible
convenience.
If you have any GiST indexes on columns using the ltree data type, you
will need to reindex them after upgrading.
For the full list of changes, please review the release notes. (Only the first 15 lines of the commit message are shown above ) |
13.6_1 07 Apr 2022 00:39:10
    |
Jan Beich (jbeich)  |
devel/icu: update to 71.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-71-1
Reported by: GitHub (watch releases)
PR: 262654
Exp-run by: antoine
Approved by: fluffy |
13.6 10 Feb 2022 14:17:45
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-server: Upgrade to latest version
The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 14.2, 13.6, 12.10, 11.15,
and 10.20. This release fixes over 55 bugs reported over the last three
months.
Announcement: https://www.postgresql.org/about/news/postgresql-142-136-1210-1115-and-1020-released-2402/
Release notes: https://www.postgresql.org/docs/release/ |
13.5 19 Dec 2021 16:42:23
    |
Piotr Kubaj (pkubaj)  |
databases/postgresql13-server: fix build on riscv64
Remove stale patch since it redefines the code that is already upstream. |
13.5 11 Nov 2021 14:37:02
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: updated to latest version
This release contains a variety of fixes from the previous version.
A dump/restore is not required for those running the same major version.
However, note that installations using physical replication should
update standby servers before the primary server, as explained in the
release notes.
Also, several bugs have been found that may have resulted in corrupted
indexes, as explained in the next several changelog entries. If any of
those cases apply to you, it's recommended to reindex possibly-affected
indexes after updating.
This release also mitigates two possible man-in-the-middle attacks.
Security: 2ccd71bd-426b-11ec-87db-6cc21735f730
Release notes: https://www.postgresql.org/docs/release/14.1/ |
13.4_1 28 Oct 2021 16:37:30
    |
Jan Beich (jbeich)  |
devel/icu: update to 70.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-70-1
Reported by: GitHub (watch releases)
PR: 258794
Exp-run by: antoine |
13.4 12 Aug 2021 16:23:00
    |
Palle Girgensohn (girgen)  |
databases/postgresql*: update to latest versions
The PostgreSQL Global Development Group has released an update to all supported
versions of our database system, including 13.4, 12.8, 11.13, 10.18, and
9.6.23, as well as the third beta release of PostgreSQL 14. This release closes
one security vulnerability and fixes over 75 bugs reported over the last three
months.
Turn off parallel builds since we continue to struggle with build problems when
it is activated. [1]
Avoid chasing latest LLVM version. [2]
PR: 256466 [1], 256167 [2]
Release notes: https://www.postgresql.org/docs/release/
Security: b471130b-fb86-11eb-87db-6cc21735f730 |
13.3_1 01 Jun 2021 13:59:35
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-server: rc-script should require DAEMON
Changeset ab83f2b4bb78 changed the startup order for Postgresql. The cleartmp
rc.d now comes after the Postgresql startup. Unfortunately, Postgresql likes
to create a socket in /tmp/.s.PGSQL.5432. After cleartmp does its work, that
socket disappears from the filesystem.
Submitted by: Jeroen Pulles
PR: 256335 |
13.3 20 May 2021 14:38:55
    |
Palle Girgensohn (girgen)  |
databases/postgresql14-*: Add postgresql 14 beta1 the the ports tree.
Release notes: https://www.postgresql.org/docs/devel/release-14.html
Also reintroduce parallel builds. Some components, namely plperl,
plpython, pltcl and contrib, fail to build properly when using parallel
builds. Something with static linking using `ar` that fails.
MAKE_JOBS_UNSAFE is set for these ports. |
13.3 20 May 2021 14:35:08
    |
Palle Girgensohn (girgen)  |
databases/postgresql1[123]-server: remove trailing space in pkg-plist |
13.3 15 May 2021 09:45:40
    |
Palle Girgensohn (girgen)  |
postgresql??-*: Revert fix to allow MAKE_JOBS
postgresql??-contrib fails to build for versions below 13 when building
in parallel. Needs more investigation. |
13.3 15 May 2021 09:12:17
    |
Palle Girgensohn (girgen)  |
databases/postgresql??-*: Upgrade to latest version
PostgreSQL 13.3, 12.7, 11.12, 10.17, and 9.6.22 Released!
The PostgreSQL Global Development Group has released an update to all supported
versions of our database system, including 13.3, 12.7, 11.12, 10.17, and
9.6.22. This release closes three security vulnerabilities and fixes over 45
bugs reported over the last three months.
Security fixes in this release:
CVE-2021-32027: Buffer overrun from integer overflow in array subscripting
calculations
CVE-2021-32028: Memory disclosure in INSERT ... ON CONFLICT ... DO UPDATE (Only the first 15 lines of the commit message are shown above ) |
13.2_1 29 Apr 2021 20:15:20
    |
Dmitry Marakasov (amdmi3)  |
databases/postgresql1*-server: update comments in rc scripts |
13.2_1 20 Apr 2021 04:56:53
    |
Loïc Bartoletti (lbartoletti)  |
databases/postgresql*: Fix build on riscv64
Reported by: tmunro
Reviewed by: girgen |
13.2_1 08 Apr 2021 23:33:31
    |
Jan Beich (jbeich)  |
devel/icu: update to 69.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-69-1
Reported by: GitHub (watch releases) |
13.2 06 Apr 2021 14:31:13
    |
Mathieu Arnold (mat)  |
all: Remove all other $FreeBSD keywords. |
13.2 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
13.2 22 Mar 2021 15:13:55
  |
mat  |
Fix an obscure sed message while going through check-plist.
The obscure message being:
sed: 4: /tmp/sed_plist_sub.1i0ZNBB8: RE error: trailing backslash (\)
Thanks to: kevans |
13.2 07 Mar 2021 16:45:49
  |
tobik  |
Remove redundant option descriptions that match the default ones
(ignoring case)
Reported by: danfe (for net/mosquitto), portscan |
13.2 11 Feb 2021 14:34:02
  |
girgen  |
PostgreSQL 13.2, 12.6, 11.11, 10.16, 9.6.21, and 9.5.25 released
The PostgreSQL Global Development Group has released an update to all supported
versions of our database system, including 13.2, 12.6, 11.11, 10.16, 9.6.21,
and 9.5.25. This release closes two security vulnerabilities and fixes over 80
bugs reported over the last three months.
Additionally, this is the final release of PostgreSQL 9.5. If you are running
PostgreSQL 9.5 in a production environment, we suggest that you make plans to
upgrade.
Release
notes: https://www.postgresql.org/about/news/postgresql-132-126-1111-1016-9621-and-9525-released-2165/
Security notes: https://www.postgresql.org/support/security/
Security: CVE-2021-3393, CVE-2021-20229 |
13.1_1 15 Dec 2020 20:50:10
  |
girgen  |
Patch to mitigate a crash with LLVM JIT
PR: 251192 (Submitted by Dmitry Marakasov) |
13.1 12 Nov 2020 15:00:40
  |
girgen  |
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
possible.
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
operation" sandbox
Security: CVE-2020-25694: Reconnection can downgrade connection security
settings
Security: CVE-2020-25696: psql's \gset allows overwriting specially
treated variables |
13.0_5 03 Nov 2020 00:56:27
  |
jbeich  |
devel/icu: update to 68.1
Changes: http://site.icu-project.org/download/68
ABI: https://abi-laboratory.pro/tracker/timeline/icu4c/
Reported by: GitHub (watch releases) |
13.0_4 14 Oct 2020 21:18:57
  |
girgen  |
Fix options breakage from r551702.
Make LLVM option work again on everything but powerpc64.
PR: 250346
Submitted by: Christian Ullrich |
13.0_3 13 Oct 2020 09:57:37
  |
girgen  |
Fix PLIST when building with local timezone data
PR: 250241
Submitted by: O. Hartmann |
13.0_2 08 Oct 2020 12:13:10
  |
pkubaj  |
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@ |
13.0_2 07 Oct 2020 20:53:25
  |
pkubaj  |
databases/postgresql13-server: fix build on clang architectures
Move LLVM option configuration after including bsd.port.options.mk.
Reported by: kib@ |
13.0_2 07 Oct 2020 13:06:19
  |
pkubaj  |
databases/postgresql13-server: fix build on GCC architectures
Add the previously removed disabling of LLVM when it's not in base. |
13.0_2 30 Sep 2020 20:52:17
  |
girgen  |
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
llvm.
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.
PR: 244403 |
13.0_2 27 Sep 2020 20:17:58
  |
girgen  |
Fix building with LLVM
Fix a plist issue [1].
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. [2]
PR: 244403 [2], 249933 [2], 249875 [1] |
13.0_1 25 Sep 2020 16:23:44
  |
girgen  |
Fix datadir 12->13
Submitted by: Raivo Hool |
13.0 24 Sep 2020 13:33:10
  |
girgen  |
Welcome PostgreSQL 13
Release notes: https://www.postgresql.org/about/news/2077/ |