Hi, On 2019-03-01 10:11:53 +0900, Michael Paquier wrote: > One thing is that we don't protect a data folder to be started when it > is in the process of being treated by an external tool, like > pg_rewind, or pg_checksums. So having an extra flag in the control > file, which can be used by external tools to tell that the data folder > is being treated for something does not sound that crazy to me. > Having a tool write a fake postmaster.pid for this kind of task does > not sound right from a correctness point of view, because the instance > is not started.
I think putting this into the control file is a seriously bad idea. Postmaster interlocks against other postmasters running via postmaster.pid. Having a second interlock mechanism, in a different file, doesn't make any sort of sense. Nor does it seem sane to have external tool write over data as INTENSELY critical as the control file, when they then have to understand CRCs etc. > Let's keep the discussions where they are by the way. Joe has just > closed the report of this thread with 4598a99, so I am moving on to > the correct places. I don't know what that means, given you replied to the above in this thread? Greetings, Andres Freund