On 2/15/07, Nicolas Williams <Nicolas.Williams at sun.com> wrote:
[...]
>
> Hmm, let's see, your log file said:
>
>     LOG:  00000: shutting down
>     LOCATION:  ShutdownXLOG, xlog.c:5031
>
>     <I infer the restart is here>
>
>     FATAL:  58P01: could not remove old lock file "postmaster.pid": No
>     such file or directory
>     HINT:  The file seems accidentally left over, but it could not be
>     removed. Please remove the file by hand and try again.
>
> The hint and the fatal message come the code that Tom Lane quoted.
>
> This means that the exclusive create open(2) of the lock file failed
> with EEXIST or EACCES, no other process was found with the pid in the
> lock file and then when PostgreSQL went to remove the lockfile the
> lockfile was gone!
>
> What removed the lockfile, and why should PostgreSQL complain at that
> point instead of just looping and trying again?

I removed the lockfile and cleared the "maintenance" flag on the
postgresql service which started up properly at this point.

Thanks
Peter

>
> Nico
> --
>

Reply via email to