Re: [HACKERS] Process startup infrastructure is a mess

Поиск
Список
Период
Сортировка
От Tsunakawa, Takayuki
Тема Re: [HACKERS] Process startup infrastructure is a mess
Дата
Msg-id 0A3221C70F24FB45833433255569204D1F7B9ECE@G01JPEXMBYT05
обсуждение исходный текст
Ответ на [HACKERS] Process startup infrastructure is a mess  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Andres Freund
> I think we should seriously consider doing a larger refactoring of this
> soon.  I've some ideas about what to do, but I'd welcome some thoughts on
> whether others consider this a serious problem or not, and what they think
> we should do about this, first.

Thank you for raising this.  I think so, too.  Some other things that quickly come to mind are:

* The signal handlers are similar in many processes and redundant.  It's not easy to see how the processes respond to a
particularsignal and what signal can be used for new things such as dumping the stack trace in the server log.  Maybe
wecan have an array of process attributes that specify the signal handlers, startup/shutdown order, etc.  Then the
commonprocess management code handles processes based on the information in the array.
 

* postmaster.c is very large (more than 6,000 lines) and hard to read.

* It may be easy to forget adding initialization code in the Windows-specific path (SubPostmasterMaain).

* It's confusing to find out which process counts toward max_connections, MaxBackends, the count of auxiliary
processes. As a user, I'm sometimes confused about the relationship between max_connections, autovacuum_max_workers,
max_wal_senders,max_worker_processes.
 

Regards
Takayuki Tsunakawa




-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] Clarification in pg10's pgupgrade.html step 10(upgrading standby servers)
Следующее
От: Doug Doole
Дата:
Сообщение: Re: [HACKERS] Add Roman numeral conversion to to_number