Re: Re: Running Postmaster - PGDATA Variable

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: missive(at)hotmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Running Postmaster - PGDATA Variable
Date: 2001-07-27 00:49:20
Message-ID: 20010727104920.A31003@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jul 27, 2001 at 12:28:25AM +0000, Lee Harr wrote:
> > Lock file "/usr/local/pgsql/data/postmaster.pid" already exists.

> If you are absolutely sure that there is not another postmaster
> still running you can remove the postmaster.pid file
>
> The file may have been left there if you killed the postmaster
> without shutting down properly (like if the power went out on
> your computer.)

Can't postgres check to see if the pid listed in that file is still active?
If it is then you can say so, if not then (unless the data is shared out and
there's a postmaster running elsewhere) it's fine to delete it.

--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> It would be nice if someone came up with a certification system that
> actually separated those who can barely regurgitate what they crammed over
> the last few weeks from those who command secret ninja networking powers.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Philip Warner 2001-07-27 02:18:56 Re: Bad timestamp external representation
Previous Message Lee Harr 2001-07-27 00:28:25 Re: Running Postmaster - PGDATA Variable