Re: What is postgresql status?

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: "Mcleod, John" <johnm(at)spicergroup(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: What is postgresql status?
Date: 2011-08-24 19:13:41
Message-ID: 4E554D65.2030600@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 24/08/2011 19:53, Mcleod, John wrote:
> C:\ms4w\apps\pgsql75win>cd c:\
>
> C:\>cd ms4w/apps/pgsql75win/data/
>
> C:\ms4w\apps\pgsql75win\data>del postmaster.pid
>
> Could Not Find C:\ms4w\apps\pgsql75win\data\postmaster.pid
>
> LOG: database system was shut down at 2011-08-24 17:30:14 Eastern
> Standard Time
> LOG: checkpoint record is at 0/34CD4078
> LOG: redo record is at 0/34CD4078; undo record is at 0/0; shutdown TRUE
> LOG: next transaction ID: 1198832; next OID: 1772830
> LOG: database system is ready
>
>
> I'm not sure if the database is up or not.
> I don't even see postgresql or mapserver as Windows services.

From the above I'd guess that Postgres isn't installed as a service, but
is being run from a batch file. Postgres writes a small text file with
its process ID in the data directory while it's running, and that's what
the first line above is trying to delete - but PG removed it when it was
shut down, so the DEL command isn't finding it.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2011-08-24 19:14:47 Re: What is postgresql status?
Previous Message Alex Hunsaker 2011-08-24 19:11:11 Re: plperlu function caused a segmentation fault