Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group