Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3102B9FC45E for ; Wed, 31 Oct 2007 12:40:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 98198-03-6 for ; Wed, 31 Oct 2007 12:40:01 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by postgresql.org (Postfix) with ESMTP id 716C09FCC9B for ; Wed, 31 Oct 2007 11:42:16 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so310797ugf for ; Wed, 31 Oct 2007 07:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=iThNqaTjBNZMxNpGQraIp0qT/5LiK98U3mYWgjqCdaI=; b=J0+ieMi1KvA/7XFhY550I/g3YHt7XISK3h7BDbl8AA+4r66wSvX7Em8eAbqpOtlLwL2a3wc+1NlmCH+TR3hqWRbudzTuI0u/Nt9b0Be7IR3QxqBqNwzCCbD3OhdjiQlHHk9kqKAJmq/eGRnc5cW4QkEk8thys0E96584KO7cOQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QVy0SoSyf/IE0CZ+PrWx/0ipCnAjN3YpgCbM8GRQCcvuFl8LlzuqOQsgwWunGfWP/tM93rSI9/45gNe7vuYNNJfL3T5OrgS29u87cRyYG1T8AYq2zZbz/fB7o7a1N0wdneUrl028438oiXBZk7BJ2BpbsrBqHR9MXV14hKx2Hoc= Received: by 10.66.184.17 with SMTP id h17mr1073312ugf.1193841733645; Wed, 31 Oct 2007 07:42:13 -0700 (PDT) Received: by 10.67.40.10 with HTTP; Wed, 31 Oct 2007 07:42:13 -0700 (PDT) Message-ID: Date: Wed, 31 Oct 2007 09:42:13 -0500 From: "Scott Marlowe" To: "Naomi Walker" Subject: Re: Find who is connected to a database Cc: "pgsql-admin@postgresql.org" In-Reply-To: <4722694D.3050109@mhs.mphasis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4722694D.3050109@mhs.mphasis.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/313 X-Sequence-Number: 27227 On 10/26/07, Naomi Walker wrote: > I'm trying to drop a database in a postgres 8.1.4 instance (x86 Solaris > 10 OS), but someone is connected to > the database. What is the best way to find out exactly who is connected? select * from pg_stat_activity;