Re: PSA: Systemd will kill PostgreSQL

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: PSA: Systemd will kill PostgreSQL
Дата
Msg-id CAMsr+YGeX6Z4EZe9gsOut=hNP7nG+w3H51yuQPuYHxVHGGOW6g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PSA: Systemd will kill PostgreSQL  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers


On 11 July 2016 at 17:49, Bernd Helmle <mailings@oopsware.de> wrote:


--On 11. Juli 2016 13:25:51 +0800 Craig Ringer <craig@2ndquadrant.com>
wrote:

> Perhaps by uid threshold in login.defs?

systemd's configure.ac has this:

AC_ARG_WITH(system-uid-max,
        AS_HELP_STRING([--with-system-uid-max=UID]
                [Maximum UID for system users]),
        [SYSTEM_UID_MAX="$withval"],
        [SYSTEM_UID_MAX="`awk 'BEGIN { uid=999 } /^\s*SYS_UID_MAX\s+/ {
uid=$2 } END { print uid }' /etc/login.defs 2>/dev/null || echo 999`"])

so yes, it's the definition from there.

At COMPILE TIME?

W.T.F?

In the thread about this, someone even says that's a bad idea. The systemd folks aren't really big on listening, though...

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Disable WAL completely - Performance and Persistency research
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [BUGS] BUG #14230: Wrong timeline returned by pg_stop_backup on a standby