summaryrefslogtreecommitdiff
path: root/databases/postgresql15-server/files
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2025-02-20 14:30:32 +0100
committerPalle Girgensohn <girgen@FreeBSD.org>2025-02-20 15:41:24 +0100
commite30c0647036e097b38ed2e56536333f95957f189 (patch)
treea57ccbcb7c335876d0d3b3ce5663f50d09d1868d /databases/postgresql15-server/files
parentx11/plank: update to 0.11.100 (diff)
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/
Diffstat (limited to 'databases/postgresql15-server/files')
-rw-r--r--databases/postgresql15-server/files/postgresql.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/databases/postgresql15-server/files/postgresql.in b/databases/postgresql15-server/files/postgresql.in
index 3cf6475a9a9b..073d3a64c004 100644
--- a/databases/postgresql15-server/files/postgresql.in
+++ b/databases/postgresql15-server/files/postgresql.in
@@ -104,10 +104,11 @@ else
fi
fi
-command_args="-D ${postgresql_data} ${postgresql_flags}"
+command_args="-l /dev/null -D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
+ echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \
-c "exec ${command} ${command_args} ${rc_arg}"
@@ -115,6 +116,7 @@ postgresql_command()
postgresql_initdb()
{
+ echo "${rc_arg} ${name}"
${su_cmd} ${postgresql_login_class:+-c ${postgresql_login_class}} \
-l ${postgresql_user} \
-c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"