container restarted -> postgresql dead but pid file exists - Mailing list pgsql-admin

From Mariel Cherkassky
Subject container restarted -> postgresql dead but pid file exists
Date
Msg-id CA+t6e1kX0jBeG2mdBa2ocLnK+xFLM+vE+pJ-RHVYi6V6_A-JBQ@mail.gmail.com
Whole thread Raw
Responses Re: container restarted -> postgresql dead but pid file exists  (robert <robert@redcor.ch>)
Re: container restarted -> postgresql dead but pid file exists  (robert <robert@redo2oo.ch>)
List pgsql-admin
Hey,
I have a container that runs centos image with a few changes and postgresql installed on it.
Whenever I start my container or restart it, the postgresql(12) starts in the following state : 
postgresql dead but pid file exists

For example : 

[root@my_container_id /]# service postgresql status
postgresql (pid  128) is running...
[root@ my_container_id /]# exit
exit
[root@docker-node]# docker restart my_container_id
my_container_id
[root@ docker-node ]#
[root@ docker-node ]#
[root@ docker-node ]# docker exec -it my_container_id /bin/bash
[root@my_container_id /]# service postgresql status
postgresql dead but pid file exists


It happens since I upgraded my postgresql to version 12.
Does anyone else suffer from the same issue ?


pgsql-admin by date:

Previous
From: gilberto.castillo@etecsa.cu
Date:
Subject: Re: [MASSMAIL]Re: partitioned table
Next
From: robert
Date:
Subject: Re: container restarted -> postgresql dead but pid file exists