Re: How can I see which users are connected? - Mailing list pgsql-general

From Fran Fabrizio
Subject Re: How can I see which users are connected?
Date
Msg-id 3C8CC59F.8020203@mmrd.com
Whole thread Raw
In response to How can I see which users are connected?  ("Jacob Vennervald Madsen" <jvm@gopinocchio.com>)
List pgsql-general
Jacob Vennervald Madsen wrote:

> Hi List
>
> I'm trying to drop a database but I get this error:
> ERROR:  DROP DATABASE: database "mydb" is being accessed by other users
>
> How can I see which user that is and from where he is connected?


I'm not so sure about the user, but a regular old 'ps -ax' will show you
what IP the connections are coming from, and what query they're running.

-Fran



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Program lose the connection to backend
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: Unable to identify an operator '=' for types 'numeric' and 'double precision'