Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 52501476669 for ; Mon, 9 Dec 2002 20:15:45 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 5A71847610A for ; Mon, 9 Dec 2002 20:11:51 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gBA1Bqpd021460; Mon, 9 Dec 2002 20:11:52 -0500 (EST) To: =?iso-8859-1?Q?Sime=F3_Reig?= Cc: pgsql-odbc@postgresql.org Subject: Re: kill 'zombies' In-reply-to: <001001c29fdf$737499e0$0500a8c0@incofisa.com> References: <200212071947.35439.aklaver@attbi.com> <001001c29fdf$737499e0$0500a8c0@incofisa.com> Comments: In-reply-to =?iso-8859-1?Q?Sime=F3_Reig?= message dated "Tue, 10 Dec 2002 01:02:37 +0100" Date: Mon, 09 Dec 2002 20:11:52 -0500 Message-ID: <21459.1039482712@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/49 X-Sequence-Number: 2438 =?iso-8859-1?Q?Sime=F3_Reig?= writes: > Sometimes access dies and we have lot of 'zombies' connections in our > server, is it possible to kill only this threads without restart database ? If it shows as "zombie" in ps, then you can't kill it (because it's already dead). kill will have absolutely zero effect. This should not happen, though. The only way a Postgres child process could stay as "zombie" for more than a few milliseconds is if the postmaster is hung up and unable to notice the dead child process. If the postmaster were hung, you'd have a lot worse problems than zombie processes --- you'd not be able to make new connections at all. So I think you aren't giving us the straight scoop. Are you sure that these zombie processes are actually Postgres processes? Look to see what their parent process is. > PostgreSQL 7.1.3 under freeBSD You could do worse than update to 7.2. It's *much* harder for a misbehaving client to hang the postmaster than it was pre-7.2. But I'm not convinced that you're describing a Postgres problem. regards, tom lane