databases/postgresql??-*: Upgrade to latest versions

The PostgreSQL Global Development Group has released an update to all
supported versions of PostgreSQL, including 17.4, 16.8, 15.12, 14.17,
and 13.20.

The issues listed below affect PostgreSQL 17. Some of these issues may
also affect other supported versions of PostgreSQL.

Improve behavior of quoting functions in libpq. The fix for
CVE-2025-1094 caused the quoting functions to not honor their string
length parameters and, in some cases, cause crashes. This problem could
be noticeable from a PostgreSQL client library, based on how it is
integrated with libpq.

Fix small memory leak in pg_createsubscriber.

Also fix a problem in the FreeBSD port, where the rc script wouldn't
return properly, messing up orchestration tools like ansible. [1]

PR:		272502 [1]
Release notes:	https://www.postgresql.org/docs/release/
This commit is contained in:
Palle Girgensohn 2025-02-20 14:30:32 +01:00
parent 762c4afd13
commit e30c064703
15 changed files with 35 additions and 25 deletions

View file

@ -1,4 +1,4 @@
DISTVERSION?= 13.19 DISTVERSION?= 13.20
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and # PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too. # not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1 PORTREVISION?= 1

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1739277660 TIMESTAMP = 1739873705
SHA256 (postgresql/postgresql-13.19.tar.bz2) = 482cce0a9f8d24c2447cfc7b2817e55f86d51afe5f7f1a85214bf93644e774ea SHA256 (postgresql/postgresql-13.20.tar.bz2) = 8134b685724d15e60d93bea206fbe0f14c8295e84f1cc91d5a3928163e4fb288
SIZE (postgresql/postgresql-13.19.tar.bz2) = 21729020 SIZE (postgresql/postgresql-13.20.tar.bz2) = 21730844

View file

@ -104,10 +104,11 @@ else
fi fi
fi fi
command_args="-D ${postgresql_data} ${postgresql_flags}" command_args="-l /dev/null -D ${postgresql_data} ${postgresql_flags}"
postgresql_command() postgresql_command()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec ${command} ${command_args} ${rc_arg}" -c "exec ${command} ${command_args} ${rc_arg}"
@ -115,6 +116,7 @@ postgresql_command()
postgresql_initdb() postgresql_initdb()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"

View file

@ -1,4 +1,4 @@
DISTVERSION?= 14.16 DISTVERSION?= 14.17
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and # PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too. # not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1 PORTREVISION?= 1

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1739277661 TIMESTAMP = 1739873706
SHA256 (postgresql/postgresql-14.16.tar.bz2) = 673c26f15ebb14306ad0ea051d8acfb3915dd342de942f5b502e5354a0ab760c SHA256 (postgresql/postgresql-14.17.tar.bz2) = 6ce0ccd6403bf7f0f2eddd333e2ee9ba02edfa977c66660ed9b4b1057e7630a1
SIZE (postgresql/postgresql-14.16.tar.bz2) = 22491073 SIZE (postgresql/postgresql-14.17.tar.bz2) = 22488812

View file

@ -104,10 +104,11 @@ else
fi fi
fi fi
command_args="-D ${postgresql_data} ${postgresql_flags}" command_args="-l /dev/null -D ${postgresql_data} ${postgresql_flags}"
postgresql_command() postgresql_command()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec ${command} ${command_args} ${rc_arg}" -c "exec ${command} ${command_args} ${rc_arg}"
@ -115,6 +116,7 @@ postgresql_command()
postgresql_initdb() postgresql_initdb()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"

View file

@ -1,4 +1,4 @@
DISTVERSION?= 15.11 DISTVERSION?= 15.12
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and # PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too. # not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1 PORTREVISION?= 1

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1739277663 TIMESTAMP = 1739873912
SHA256 (postgresql/postgresql-15.11.tar.bz2) = 5367e97e81e493301cc4aab049dfbc9b4913822985bc62379faab2a281cfbdf0 SHA256 (postgresql/postgresql-15.12.tar.bz2) = 3bc8462a38ca0857270cc88b949a3f6659f0d5c44c029c482355835b61a0f6f7
SIZE (postgresql/postgresql-15.11.tar.bz2) = 23167652 SIZE (postgresql/postgresql-15.12.tar.bz2) = 23170228

View file

@ -104,10 +104,11 @@ else
fi fi
fi fi
command_args="-D ${postgresql_data} ${postgresql_flags}" command_args="-l /dev/null -D ${postgresql_data} ${postgresql_flags}"
postgresql_command() postgresql_command()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec ${command} ${command_args} ${rc_arg}" -c "exec ${command} ${command_args} ${rc_arg}"
@ -115,6 +116,7 @@ postgresql_command()
postgresql_initdb() postgresql_initdb()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"

View file

@ -1,5 +1,5 @@
PORTNAME?= postgresql PORTNAME?= postgresql
DISTVERSION?= 16.7 DISTVERSION?= 16.8
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and # PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too. # not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1 PORTREVISION?= 1

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1739277664 TIMESTAMP = 1739873709
SHA256 (postgresql/postgresql-16.7.tar.bz2) = 62e02f77ebfc4a37f1700c20cc3ccd85ff797b5613766ebf949a7899bb2113fe SHA256 (postgresql/postgresql-16.8.tar.bz2) = 9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
SIZE (postgresql/postgresql-16.7.tar.bz2) = 24905167 SIZE (postgresql/postgresql-16.8.tar.bz2) = 24911337

View file

@ -104,10 +104,11 @@ else
fi fi
fi fi
command_args="-D ${postgresql_data} ${postgresql_flags}" command_args="-l /dev/null -D ${postgresql_data} ${postgresql_flags}"
postgresql_command() postgresql_command()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec ${command} ${command_args} ${rc_arg}" -c "exec ${command} ${command_args} ${rc_arg}"
@ -115,6 +116,7 @@ postgresql_command()
postgresql_initdb() postgresql_initdb()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"

View file

@ -1,5 +1,5 @@
PORTNAME?= postgresql PORTNAME?= postgresql
DISTVERSION?= 17.3 DISTVERSION?= 17.4
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and # PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too. # not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1 PORTREVISION?= 1

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1739277665 TIMESTAMP = 1739873710
SHA256 (postgresql/postgresql-17.3.tar.bz2) = 13c18b35bf67a97bd639925fc581db7fd2aae4d3548eac39fcdb8da74ace2bea SHA256 (postgresql/postgresql-17.4.tar.bz2) = c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7
SIZE (postgresql/postgresql-17.3.tar.bz2) = 21520115 SIZE (postgresql/postgresql-17.4.tar.bz2) = 21519810

View file

@ -104,10 +104,11 @@ else
fi fi
fi fi
command_args="-D ${postgresql_data} ${postgresql_flags}" command_args="-l /dev/null -D ${postgresql_data} ${postgresql_flags}"
postgresql_command() postgresql_command()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec ${command} ${command_args} ${rc_arg}" -c "exec ${command} ${command_args} ${rc_arg}"
@ -115,6 +116,7 @@ postgresql_command()
postgresql_initdb() postgresql_initdb()
{ {
echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \ ${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \ -l ${postgresql_user} \
-c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"