pgsql: Allocate Backend structs in PostmasterContext. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Allocate Backend structs in PostmasterContext.
Date
Msg-id E1qpm0G-000lfg-P5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: pgsql: Optimize various aggregate deserialization functions
Next
From: Tom Lane
Date:
Subject: pgsql: Doc: use CURRENT_USER not USER in plpgsql trigger examples.