Bruce Momjian <pgman@candle.pha.pa.us> writes: > Doesn't removing the file reduce the chances of failing to start later > in case another postmaster already has that pid?
No, because the external pidfile has zero to do with Postgres' internal behavior. Personally I always thought that the external pidfile was a "feature" we should have rejected. It can never be a particularly reliable guide to what PG is doing, the more especially so if the program looking at it isn't doing any cross-checking, as the OP seems not to be doing. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend