Port details |
- postgresql13-server PostgreSQL is the most advanced open-source database available anywhere
- 13.7_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-07-20 14:21:07
- Commit Hash: d076ad9
- People watching this port, also watch:: apache24, nginx, postfix, curl, python38
- 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.
WWW: https://www.postgresql.org/
- SVNWeb : git : Homepage
- 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 = 1652167845
SHA256 (postgresql/postgresql-13.7.tar.bz2) = 1b905bf4f3d83614a393b3c51fd345910fd261e4f5124a68d9a1fdd3a2a46399
SIZE (postgresql/postgresql-13.7.tar.bz2) = 21364433
- 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_filedump
- databases/pg_partman
- databases/pg_qualstats
- databases/pg_repack
- databases/pg_similarity
-
Deleted ports which required this port:
- for Run
-
- databases/pg_citus
- databases/pg_dirtyread
- databases/pg_filedump
- databases/pg_partman
- databases/pg_qualstats
- databases/pg_repack
- databases/pg_similarity
-
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.7_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
- Master Sites:
|
Commit History - (may be incomplete: see SVNWeb link above for full details) |
Date | By | Description |
20 Jul 2022 14:21:07 13.7_1 |
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 ) |
23 May 2022 10:46:14 13.7_1 |
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] |
19 May 2022 13:36:48 13.7 |
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 |
12 May 2022 13:41:07 13.7 |
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 ) |
07 Apr 2022 00:39:10 13.6_1  |
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 |
10 Feb 2022 14:17:45 13.6  |
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/ |
19 Dec 2021 16:42:23 13.5  |
Piotr Kubaj (pkubaj)  |
databases/postgresql13-server: fix build on riscv64
Remove stale patch since it redefines the code that is already upstream. |
11 Nov 2021 14:37:02 13.5  |
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/ |
28 Oct 2021 16:37:30 13.4_1  |
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 |
12 Aug 2021 16:23:00 13.4  |
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 |
01 Jun 2021 13:59:35 13.3_1  |
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 |
20 May 2021 14:38:55 13.3  |
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. |
20 May 2021 14:35:08 13.3  |
Palle Girgensohn (girgen)  |
databases/postgresql1[123]-server: remove trailing space in pkg-plist |
15 May 2021 09:45:40 13.3  |
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. |
15 May 2021 09:12:17 13.3  |
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 ) |
29 Apr 2021 20:15:20 13.2_1  |
Dmitry Marakasov (amdmi3)  |
databases/postgresql1*-server: update comments in rc scripts |
20 Apr 2021 04:56:53 13.2_1  |
Loïc Bartoletti (lbartoletti)  |
databases/postgresql*: Fix build on riscv64
Reported by: tmunro
Reviewed by: girgen |
08 Apr 2021 23:33:31 13.2_1  |
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) |
06 Apr 2021 14:31:13 13.2  |
Mathieu Arnold (mat)  |
all: Remove all other $FreeBSD keywords. |
06 Apr 2021 14:31:07 13.2  |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
22 Mar 2021 15:13:55
13.2  |
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 |
07 Mar 2021 16:45:49
13.2  |
tobik  |
Remove redundant option descriptions that match the default ones
(ignoring case)
Reported by: danfe (for net/mosquitto), portscan |
11 Feb 2021 14:34:02
13.2  |
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 |
15 Dec 2020 20:50:10
13.1_1  |
girgen  |
Patch to mitigate a crash with LLVM JIT
PR: 251192 (Submitted by Dmitry Marakasov) |
12 Nov 2020 15:00:40
13.1  |
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 |
03 Nov 2020 00:56:27
13.0_5  |
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) |
14 Oct 2020 21:18:57
13.0_4  |
girgen  |
Fix options breakage from r551702.
Make LLVM option work again on everything but powerpc64.
PR: 250346
Submitted by: Christian Ullrich |
13 Oct 2020 09:57:37
13.0_3  |
girgen  |
Fix PLIST when building with local timezone data
PR: 250241
Submitted by: O. Hartmann |
08 Oct 2020 12:13:10
13.0_2  |
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@ |
07 Oct 2020 20:53:25
13.0_2  |
pkubaj  |
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
13.0_2  |
pkubaj  |
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
13.0_2  |
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 |
27 Sep 2020 20:17:58
13.0_2  |
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] |
25 Sep 2020 16:23:44
13.0_1  |
girgen  |
Fix datadir 12->13
Submitted by: Raivo Hool |
24 Sep 2020 13:33:10
13.0  |
girgen  |
Welcome PostgreSQL 13
Release notes: https://www.postgresql.org/about/news/2077/ |