From: Rod Taylor <rbt@rbt.ca>
To: Andrei Verovski <andreil1@mail.starlett.lv>
Cc: pgsql-php@postgresql.org
Subject: Re: How to Determine Number of connected users
Date: 23 Jul 2003 10:32:53 -0400
Message-ID: <1058970772.48936.13.camel@jester> (raw)
In-Reply-To: <C88143EC-BD19-11D7-B071-000A959C9730@starlett.lv>
References: <C88143EC-BD19-11D7-B071-000A959C9730@starlett.lv>
On Wed, 2003-07-23 at 10:27, Andrei Verovski wrote:
> Hi,
>
> Is it possible to determine number of connected users to certain
> PostgreSQL database from within PHP script?
select * from pg_stat_activity;
Add the appropriate where clause for whatever you are trying to restrict
by.
Attachments:
signature.asc (application/pgp-signature, 186B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rbt@rbt.ca, andreil1@mail.starlett.lv
Subject: Re: How to Determine Number of connected users
In-Reply-To: <1058970772.48936.13.camel@jester>
References: <C88143EC-BD19-11D7-B071-000A959C9730@starlett.lv> <1058970772.48936.13.camel@jester>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox