pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: neela <neelat100@gmail.com>
To: Pavan Teja <pavan.postgresdba@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: General: Unable to start the postgresql after copying postgresql.log
Date: Thu, 11 Oct 2018 09:28:49 +0530
Message-ID: <cda2b573-b070-247c-70aa-9bda99eed507@gmail.com> (raw)
In-Reply-To: <CACh9nsac+07g6jvv4-24Kcv-XHHwqAFKW0eWkAA7seDcrSumRA@mail.gmail.com>
References: <07783269-97c8-adcf-150f-fcedd16df21f@gmail.com>
	<0421f20b-9443-e19d-022f-1d7790b5c183@gmail.com>
	<CACh9nsac+07g6jvv4-24Kcv-XHHwqAFKW0eWkAA7seDcrSumRA@mail.gmail.com>

Dear sir/mam,
     May I know why this cause. I simply doing the copying the log alone.
     But why postgresql not get started.
     Which causes this issue.

Regards,
Neelaveni

On Wednesday 10 October 2018 07:29 PM, Pavan Teja wrote:
> Hi neela,
>
> In this case, you can delete the postmaster.pid file and try to 
> restart the Postgresql database.
>
> I hope it might start. Kindly acknowledge for further queries if any.
>
> Regards,
> Pavan,
> 9841380956
>
> On Wed, Oct 10, 2018, 7:26 PM neela <neelat100@gmail.com 
> <mailto:neelat100@gmail.com>> wrote:
>
>
>     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
>

view thread (4+ messages)  latest in thread

Message-ID: <cda2b573-b070-247c-70aa-9bda99eed507@gmail.com>
Permalink:  ../cda2b573-b070-247c-70aa-9bda99eed507@gmail.com/
Also on:    postgresql.org/message-id/cda2b573-b070-247c-70aa-9bda99eed507@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: neelat100@gmail.com, pavan.postgresdba@gmail.com
  Subject: Re: General: Unable to start the postgresql after copying postgresql.log
  In-Reply-To: <cda2b573-b070-247c-70aa-9bda99eed507@gmail.com>
  References: <07783269-97c8-adcf-150f-fcedd16df21f@gmail.com> <0421f20b-9443-e19d-022f-1d7790b5c183@gmail.com> <CACh9nsac+07g6jvv4-24Kcv-XHHwqAFKW0eWkAA7seDcrSumRA@mail.gmail.com> <cda2b573-b070-247c-70aa-9bda99eed507@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox