Обсуждение: pgsql: Code cleanup for InitProcGlobal.

Поиск
Список
Период
Сортировка

pgsql: Code cleanup for InitProcGlobal.

От
Robert Haas
Дата:
Code cleanup for InitProcGlobal.

The old code creates three separate arrays when only one is needed,
using two different shmem allocation functions for no obvious reason.
It also strangely splits up the initialization of AuxilaryProcs
between the top and bottom of the function to no evident purpose.

Review by Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/47ebcecc3ef862c6ad961539638123af63407ac9

Modified Files
--------------
src/backend/storage/lmgr/proc.c |   79 ++++++++++++++++++---------------------
1 files changed, 36 insertions(+), 43 deletions(-)