Lamar Owen <[EMAIL PROTECTED]> writes: > The last thing I want to do is > wait too long on some platforms and not long enough on others. The difficulty is to know how long the final checkpoint will take. This depends on (at least) your hard disk speed and the number of dirty buffers, so I think you're going to have some difficulty estimating it with any reliability. BogoMIPS won't help, for sure. However, if you do SIGINT and then wait a few seconds, you can be fairly sure that all the extant backends are dead (if not frozen up...) and that the checkpoint is in progress. That may be about the best you can do. I do not agree that this script should take it on itself to kill -9 the postmaster. Please note that the reason we're having this discussion at all is that the init script may be used for purposes other than system shutdown. So the argument that "it's going to happen anyway" is wrong. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
- Re: [HACKERS] How to shoot yourself in the foot: kill -9 ... Lamar Owen
- Re: [HACKERS] How to shoot yourself in the foot: kil... Tom Lane
- Re: [HACKERS] How to shoot yourself in the foot:... Bruce Momjian
- Re: [HACKERS] How to shoot yourself in the foot: kil... Bruce Momjian
- Re: [HACKERS] How to shoot yourself in the foot:... Tom Lane
- Re: [HACKERS] How to shoot yourself in the f... Lamar Owen
- Re: [HACKERS] How to shoot yourself in t... Bruce Momjian
- Re: [HACKERS] How to shoot yourself... Lamar Owen
- Re: [HACKERS] How to shoot yourself in t... Tom Lane
- Re: [HACKERS] How to shoot yourself... Lamar Owen
- Re: [HACKERS] How to shoot your... Tom Lane
- Re: [HACKERS] How to shoot your... Lamar Owen
- Re: [HACKERS] How to shoot your... Tom Lane
- Re: [HACKERS] How to shoot your... Lamar Owen
- Re: [HACKERS] How to shoot your... Tom Lane
- Re: [HACKERS] How to shoot your... Bruce Momjian
- Re: [HACKERS] How to shoot your... Lamar Owen
- Re: [HACKERS] How to shoot your... Bruce Momjian
- Re: [HACKERS] How to shoot your... Tom Lane
- Re: [HACKERS] How to shoot your... Peter Eisentraut
- Re: [HACKERS] How to shoot your... Lamar Owen