Thread: pgsql: Allocate Backend structs in PostmasterContext.

pgsql: Allocate Backend structs in PostmasterContext.

From
Heikki Linnakangas
Date:
Allocate Backend structs in PostmasterContext.

The child processes don't need them. By allocating them in
PostmasterContext, the memory gets free'd and is made available for
other stuff in the child processes.

Reviewed-by: Thomas Munro
Discussion: https://www.postgresql.org/message-id/4f95c1fc-ad3c-7974-3a8c-6faa3931804c@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0bbafb534275686e780aae2964382e56321c61af

Modified Files
--------------
src/backend/postmaster/bgworker.c   | 11 ++++++++---
src/backend/postmaster/postmaster.c | 24 +++++++++++-------------
2 files changed, 19 insertions(+), 16 deletions(-)