Re: postmaster vs. postgres - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: postmaster vs. postgres
Date
Msg-id 200201090607.g0967Yw21106@candle.pha.pa.us
Whole thread Raw
In response to postmaster vs. postgres  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne wrote:
> What is the difference between the postmaster binary and the postgres
> binary?  Does the postmaster act as nothing more than a multiplexor for
> postgres processes or something?

The binaries are the same -- one is a symlink to the other.  This allows
us to fork postgres children of the postmaster with no exec().  The
binary does read argv[0] and behaves differently depending on which
binary name it was called under.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Thomas Swan
Date:
Subject: Re: Feature Request: DROP ALL FROM DATABASE database_name
Next
From: Tom Lane
Date:
Subject: Re: postmaster vs. postgres