From: | Graeme Hinchliffe <graeme(dot)hinchliffe(at)zeninternet(dot)co(dot)uk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | detecting a dead db not seeming to work |
Date: | 2004-08-26 13:13:53 |
Message-ID: | 1093526033.14615.8.camel@office-137.zen.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hiya
I have now managed to get my code to function correctly for a none
present db, and one that is shutdown whilst it is being used. In both
cases my code functions and happily recovers on the db's return.
However one of the tests I performed was to kill -9 the postmaster
process to see how it would handle that (assuming the same behaviour).
However nothing happens! no segfault, no db connection failure etc.
Also what is weird is that even once I have removed the pid file from
/var/run I cannot restart postgres with the /etc/init.d/postgres
script! It claims postgres is running...
If I kill my daemon which is trying to talk to it, postgres starts
without problem agian!
it's as though my daemon trying to talk to it is keeping the connection
open and preventing the db from being started!
I am running postgres 7.3.4 under redhat 9.
Any idea whats going on? or suggestions?
Thanks
--
-----
Graeme Hinchliffe (BSc)
Core Internet Systems Designer
Zen Internet (http://www.zen.co.uk/)
Direct: 0845 058 9074
Main : 0845 058 9000
Fax : 0845 058 9005
From | Date | Subject | |
---|---|---|---|
Next Message | Anony Mous | 2004-08-26 13:35:59 | Re: Problem to connect to the Windows Port |
Previous Message | Christopher Browne | 2004-08-26 12:01:56 | Re: stone-age maintenance procedures ;-) |