General: Unable to start the postgresql after copying postgresql.log - Mailing list pgsql-bugs

From neela
Subject General: Unable to start the postgresql after copying postgresql.log
Date
Msg-id 0421f20b-9443-e19d-022f-1d7790b5c183@gmail.com
Whole thread Raw
Responses Re: General: Unable to start the postgresql after copying postgresql.log
List pgsql-bugs


Dear sir/mam,
    I'm using postgresql 9.4.6 version.
    I've copied the postgresql.log as postgresql.log_bk.
    While copying the postgresql.log, I've restarted the postgresql process.
    Then the process got failed and I've got the following error,

        psql: could not connect to server: Connection refused
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

    And then I've check with log, it gives the result as follow,
    FATAL:  pre-existing shared memory block is still in use
    HINT:  If you're sure there are no old server processes still running,
    remove the shared memory block or just delete the file "postmaster.pid".

    After that unable to restart the postgresql, it always fails.
    After rebooting it gets succeed and truncating postmaster.pid gets succeed.
    Kindly help me how to fix this.

--    
with regards,
Neelaveni

pgsql-bugs by date:

Previous
From: Jim Finnerty
Date:
Subject: Re: IMMEDIATE constraint enforcement does not comply with the SQLstandard
Next
From: Pavan Teja
Date:
Subject: Re: General: Unable to start the postgresql after copying postgresql.log