mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 19:56:53 -04:00
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 CVE-2021-32029: Memory disclosure in partitioned-table UPDATE ... RETURNING Also plenty of bug fixes. See the release note for details. Changes to the port: Make sure we use the matching version of llvm. This fixes a problem with the llvm version string not being monotonically increasing with the version number. [1] Better pkg message about checksums for postgresql 12+. [2] [4] Adjust login class parameter to adhere to the documentation in rc.subr(8) [3]: The rc.conf parameter for the login class of the postgresql daemon has changed name from postgresql_class to postgresql_login_class, since rc.subr(8) states that the parameter should be named ${name}_login_class. Allow parallel builds. [5] Correct the directory name for the user postgres in pkg message. [6] PR: 250824 [1], 253558 [2], 236060 [3], 233106 [4], 230656 [5] PR: 226674 [6] Submitted by: Michael Zhilin [2], Michael Zhilin [3], Dmitry Chestnykh [4] Submitted by: Steve Wills [5], knezour [6] Security: 76e0bb86-b4cb-11eb-b9c9-6cc21735f730 Security: 62da9702-b4cc-11eb-b9c9-6cc21735f730 Release notes: https://www.postgresql.org/docs/release/
69 lines
2.5 KiB
Text
69 lines
2.5 KiB
Text
[
|
|
{ type: install
|
|
message: <<EOM
|
|
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, %%PREFIX%%/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 %%PREFIX%%/share/postgresql/odbc.sql
|
|
to get the functions required for ODBC compliance.
|
|
|
|
Please note that if you use the rc script,
|
|
%%PREFIX%%/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
|
|
|
|
%%PREFIX%%/etc/rc.d/postgresql initdb
|
|
|
|
You can then start PostgreSQL by running:
|
|
|
|
%%PREFIX%%/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 only be enabled during
|
|
the initdb phase, by adding the "--data-checksums" flag to
|
|
the postgresql_initdb_flags rcvar. 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
|
|
EOM
|
|
}
|
|
]
|