X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 71A42D1D570 for ; Fri, 21 Nov 2003 15:53:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 16944-06 for ; Fri, 21 Nov 2003 11:52:45 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 44B88D1B4E6 for ; Fri, 21 Nov 2003 11:52:41 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hALFq119012540; Fri, 21 Nov 2003 10:52:01 -0500 (EST) To: Bruce Momjian Cc: Alex Satrapa , "Randolf Richardson, DevNet SysOp 29" , pgsql-general@postgresql.org Subject: Re: Humor me: Postgresql vs. MySql (esp. licensing) In-reply-to: <200311211542.hALFgGC21387@candle.pha.pa.us> References: <200311211542.hALFgGC21387@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 21 Nov 2003 10:42:16 -0500" Date: Fri, 21 Nov 2003 10:52:00 -0500 Message-ID: <12539.1069429920@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/1207 X-Sequence-Number: 52857 Bruce Momjian writes: > The one problem with the signal approach is how long does the system > wait before giving up on the app shutdown? Seems that should be > something controllable by the admin, but without shutdown scripts, it > isn't. I believe 20 seconds is the standard number --- that's plenty for Postgres. (I know that it is about 20 seconds on OS X, because that's how much time tended to get added to the shutdown procedure back when OS X 10.0 had that shutdown bug that prevented the postmaster from forking a shutdown subprocess.) The fact that the number isn't readily configurable is indeed a PITA. In a previous lifetime I ran a data-collection application that needed more than 20 seconds to shut down, and so would not exit cleanly if you didn't have a shutdown script step that would wait for it. But I don't see it as a problem for Postgres. regards, tom lane