Re: postmaster link to postgres executable

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: imoir(at)templetech(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postmaster link to postgres executable
Date: 2005-07-07 13:31:04
Message-ID: m2irzmn3on.fsf@Douglas-McNaughts-Powerbook.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

imoir(at)templetech(dot)com writes:

> Hello
>

> Why is the postmaster link to the postgres executable used to run
> the postgres server rather than running the postgres executable
> directly? I have a client who wishes to use a monitoring
> application, and the fact that a link to an executable is used is
> causing a problem. Can the reference in the linux startup script be
> changed from the postmaster file to the postgres file?

It's a single binary with multiple names, which behaves differently
depending on which name is used to invoke it. If you start it as
'postmaster', it runs as a daemon and handles incoming connections.
If you invoke it as 'postgres', it starts a "standalone backend",
which is only used for fixing certain rare problems.

So no, invoking it as 'postgres' will keep it from working correctly.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-07-07 13:55:51 Re: postmaster link to postgres executable
Previous Message Andrus 2005-07-07 13:26:35 How to force Postgres to calculate MAX(boolean)