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@postgresql.org)
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026