Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7B6AE476417; Tue, 13 Aug 2002 12:50:29 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 319B44763CB; Tue, 13 Aug 2002 12:50:21 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7DGoJVk027127; Tue, 13 Aug 2002 12:50:20 -0400 (EDT) To: "Robert M. Meyer" Cc: nickf@ontko.com, pgsql-jdbc , pgsql-admin Subject: Re: Leftover processes on shutdown - Debian+JDBC In-reply-to: <1029256582.28282.38.camel@skymaster> References: <1029252347.28282.15.camel@skymaster> <26784.1029255629@sss.pgh.pa.us> <1029256582.28282.38.camel@skymaster> Comments: In-reply-to "Robert M. Meyer" message dated "13 Aug 2002 12:36:22 -0400" Date: Tue, 13 Aug 2002 12:50:19 -0400 Message-ID: <27126.1029257419@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/152 X-Sequence-Number: 5267 "Robert M. Meyer" writes: > Hmmm... You're right. How much longer does a '-m fast' take. The > reason I ask is because during a server shutdown, init doesn't wait > around long after the script exits. The problem with not using the '-m' > is that pg_ctl returns quickly but the DB may not be down, causing the > system to pull the rug out from under it. (a) The solution to that is to use the -w option to pg_ctl, no? (b) -m immediate is just as dangerous as letting the system pull the rug out. Probably more so, as the system is unlikely to get around to killing Postgres before we've had a chance to flush shared buffers. regards, tom lane