| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | postgres <yaozhen(at)genienrm(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: monitor postgres connect session |
| Date: | 2001-04-22 18:02:49 |
| Message-ID: | 200104221802.f3MI2nQ16790@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
The ps command should show the connection username, database, and
status/idle.
> I like to know if a connect session is idle, before somebody can do a kill
> connect session.
>
> How can I get the session state?
> Where have the sample code or doc about this?
> And I want to code by c.
>
> Thanxs
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joel Burton | 2001-04-22 18:19:55 | Re: CAST doesn't work :-( |
| Previous Message | David Wall | 2001-04-22 16:43:13 | Re: Re: Getting milliseconds out of TIMESTAMP |