X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A3F5C5294D for ; Fri, 13 May 2005 10:26:54 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35745-03 for ; Fri, 13 May 2005 13:26:50 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by svr1.postgresql.org (Postfix) with ESMTP id 0F95B5378F for ; Fri, 13 May 2005 10:26:47 -0300 (ADT) Received: by zproxy.gmail.com with SMTP id 12so1417823nzp for ; Fri, 13 May 2005 06:26:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HxlJKjwga7pr++O/hdY589PCkMFpHOFrpLK90l9Or0MkRAyS8Bftj55CnoWRL5wemrHXKeBS3l7qi3pYKNDMOvybid6/M+OZpp+IGf6+vJHJs2xmoQtzQZwG2g8Xh1umtYFEWxeHjHLnGBqCJMl9+m0tsa+zRYTvxMGzKkft/oQ= Received: by 10.36.147.12 with SMTP id u12mr1038643nzd; Fri, 13 May 2005 06:26:51 -0700 (PDT) Received: by 10.36.74.10 with HTTP; Fri, 13 May 2005 06:26:51 -0700 (PDT) Message-ID: <674d1f8a05051306264754fbd0@mail.gmail.com> Date: Fri, 13 May 2005 18:56:51 +0530 From: Gourish Singbal Reply-To: Gourish Singbal To: "Ing. Jhon Carrillo" Subject: Re: how do i kill user sessions? Cc: pgsql-admin@postgresql.org In-Reply-To: <00bc01c55665$31117340$1400a8c0@tgusta2> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <00bc01c55665$31117340$1400a8c0@tgusta2> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.27 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200505/182 X-Sequence-Number: 17611 you can try. 1) ps -ef | grep "postgres" see which users are connectioned and than. 2) pkill -f 'postgres: postgres '; its more safer i suppose than kill -9 regards Gourish On 5/12/05, Ing. Jhon Carrillo wrote: > I have a problem with the users administration. When I want to erase (dr= op) > some databases there's an error: ** database "name_db" is being accessed = by > other users.** I want to kill the user sessions conected but i don't kno= w > how to do it (Kill the user sessions). > =20 > thanks. --=20 Best, Gourish Singbal