Re: Shared library support for postmaster - Mailing list pgsql-patches

From Tom Lane
Subject Re: Shared library support for postmaster
Date
Msg-id 26918.980863554@sss.pgh.pa.us
Whole thread Raw
In response to Shared library support for postmaster  (Erik Hofman <erik@ehofman.com>)
List pgsql-patches
Erik Hofman <erik@ehofman.com> writes:
> After a little test i manneged to create a shared library for
> postmaster.
> Originally the postmaster program was 3922308 bytes large, but after a
> small modification in src/backend/Makefile it have a postgres binary of
> 26812 bytes and one shared library of 3981064 bytes.

> This should save 115 megabytes of memory when 32 postmaster processed
> have started!!

You wasted your time, I'm afraid.  On any reasonable Unix system, all
the backends share the same copy of the text segment anyway.

            regards, tom lane

pgsql-patches by date:

Previous
From: Erik Hofman
Date:
Subject: Shared library support for postmaster
Next
From: Bruce Momjian
Date:
Subject: Re: A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script....