Re: Problem with starting Postgres - Mailing list pgsql-novice

From Tom Lane
Subject Re: Problem with starting Postgres
Date
Msg-id 2606.1121693882@sss.pgh.pa.us
Whole thread Raw
In response to Problem with starting Postgres  ("Reinhard Hnat" <hnat@logotronic.co.at>)
List pgsql-novice
"Reinhard Hnat" <hnat@logotronic.co.at> writes:
> I am using PG 7.4 I was creating a new Databasecluster. after a first
> successful start of  postmaster i wanted to stop and start again. pg_ctl
> teminated with a message that posmaster won't stop, so i stopped it with -m
> immediate. Since then it is not possible to start again.

I think you probably have a process or two still hanging around.  Do
"ps auxww | grep postgres" (or local equivalent) and look for processes
that are/were children of the old postmaster or one of the subsequent
attempts.  Get rid of 'em with kill -9.

Once you are certain there are none left, "rm -rf" the database
directories and rerun initdb.

(Of course this'd be a lot harder if you were trying to preserve data,
but since there's nothing to preserve, you may as well take the brute
force approach.)

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: ADD COLUMN damage control
Next
From: Diana Nemirovsky
Date:
Subject: NATURAL INNER JOIN no longer working