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: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches

After a little test i manneged to create a shared library for
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 $(OBJS) $(OBJS1)
        $(CC) $(CFLAGS) -o postgres main/SUBSYS.o -L.  $(LDFLAGS)

instead of:

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



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-2017 The PostgreSQL Global Development Group