Shared library support for postmaster

From: Erik Hofman <erik(at)ehofman(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Shared library support for postmaster
Date: 2001-01-30 13:01:37
Message-ID: 3A76BB31.F60E1AA2@ehofman.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Hi,

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!!

Could anyone find a reason not to do it this way?

BTW. The modification is:

postgres: fmgr.h $(OBJS) $(VERSIONOBJ)
$(CC) -all -shared $(LDFLAGS) -o libpgback.so $(OBJS) $(OBJS1)
$(VERSIONOBJ)
$(CC) $(CFLAGS) -o postgres main/SUBSYS.o -L. $(LDFLAGS)
-lpgback

instead of:

postgres: fmgr.h $(OBJS) $(VERSIONOBJ)
$(CC) $(CFLAGS) -o postgres $(OBJS) $(OBJS1) $(VERSIONOBJ)
$(LDFLAGS)

Erik

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter T Mount 2001-01-30 13:43:04 Re: Re: [PATCHES] Re: [INTERFACES] Patch for JDBC timestamp problems
Previous Message Michael Stephenson 2001-01-30 09:39:13 Re: [PATCHES] Re: [INTERFACES] Patch for JDBC timestamp problems