Re: Connection slots reserved for replication

Поиск
Список
Период
Сортировка
От Kyotaro HORIGUCHI
Тема Re: Connection slots reserved for replication
Дата
Msg-id 20190124.204743.42441183.horiguchi.kyotaro@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Connection slots reserved for replication  (Oleksii Kliukin <alexk@hintbits.com>)
Ответы Re: Connection slots reserved for replication  (Oleksii Kliukin <alexk@hintbits.com>)
Список pgsql-hackers
Hello.

Documentation looks fine for me. By the way, a comment for the
caller-site of CheckRequreParameterValues() in xlog.c looks
somewhat stale.

> /* Check to see if any changes to max_connections give problems */
> CheckRequiredParameterValues();

may be better something like this?:

> /* Check to see if any parameter change gives a problem on replication */


In postinit.c:
>    /*
>     * The last few connection slots are reserved for superusers.
>     */
>    if ((!am_superuser && !am_walsender) &&
>        ReservedBackends > 0 &&

This is forgetting about explaing about walsenders.

> The last few connection slots are reserved for
> superusers. Replication connections don't share the same slot
> pool.

Or something?

And the parentheses enclosing "!am_superuser..walsender" seems no
longer needed.


In guc.c:
-        /* see max_connections and max_wal_senders */
+        /* see max_connections */

I don't understand for what reason we should see max_connections
just above. (Or even max_wal_senders) Do we need this comment?
(There're some other instances, but they wont'be for this patch.)


In pg_controldata.c:
+    printf(_("max_wal_senders setting:         %d\n"),
+           ControlFile->max_wal_senders);
     printf(_("max_worker_processes setting:         %d\n"),
            ControlFile->max_worker_processes);
     printf(_("max_prepared_xacts setting:           %d\n"),

The added item seems to want some additional spaces.


regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Use an enum for RELKIND_*?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Simplify set of flags used by MyXactFlags