Received: from www.wgcr.org (IDENT:root@www.wgcr.org [206.74.232.194]) by hub.org (8.9.3/8.9.3) with ESMTP id PAA18262 for ; Mon, 3 Jan 2000 15:58:46 -0500 (EST) (envelope-from lamar.owen@wgcr.org) Received: from wgcr.org ([206.74.232.197]) by www.wgcr.org (8.9.3/8.9.3/WGCR) with ESMTP id PAA03500; Mon, 3 Jan 2000 15:58:48 -0500 Message-ID: <38710D7C.850A8232@wgcr.org> Date: Mon, 03 Jan 2000 15:58:36 -0500 From: Lamar Owen Organization: WGCR Internet Radio X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: kdebisschop@range.infoplease.com CC: pgsql-admin@postgreSQL.org Subject: Re: [ADMIN] Is it possible to run multiple postmasters?h References: <200001032001.PAA24974@candle.pha.pa.us> <200001032033.PAA27539@skillet.infoplease.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Karl DeBisschop wrote: > > > Yes you can. Use a postmaster parameter to specify a different port > > number, and use that port number in your connections. > > What I was missing was that: > > rm -f /tmp/.s.PGSQL.* > /dev/null > > must be removed from thr redhat init script in order for the sockcts > to work correctly. The 6.5.1/6.5.3 workarond now seems viable. As a note, the RedHat init scripts shipped with the RPM's are not intended for 'special' applications such as this one -- however, I am working on a more generalized setup in the RPM's where multiple postmasters, etc, could be started. That rm -f is for cleanup purposes -- assuming a single postmaster, it works correctly. For multiple postmasters, it would need to be changed (assuming PGPORT= postmaster listen port): rm -f /tmp/.s.PGSQL.$(PGPORT) > /dev/null This way, the init script allows a postmaster to startup even if the restart is due to a system crash that would leave the .s.PGSQL.* files laying around. I'm assuming that you have all the paths set correctly for each copy of the postmaster, so that the 6.5.1 postmaster isn't trying to start a 6.5.3 backend, right? -- Lamar Owen WGCR Internet Radio 1 Peter 4:11