PID of user connection???

Started by Carlos Olivaalmost 23 years ago2 messagesgeneral
Jump to latest
#1Carlos Oliva
carlos@pbsinet.com

Hello Forum,

Is there a way to get the PID of a user connected to the database via JDBC?
My java application connects the users via JDBC to PostgreSQL 7.3.2 in Linux
RedHat.

Thanks in advance for your response

#2Doug McNaught
doug@mcnaught.org
In reply to: Carlos Oliva (#1)
Re: PID of user connection???

Carlos <Carlos@pbsinet.com> writes:

Hello Forum,

Is there a way to get the PID of a user connected to the database via JDBC?
My java application connects the users via JDBC to PostgreSQL 7.3.2 in Linux
RedHat.

Do you mean the PID of the backend process for that connection, or the
client PID? What if the client is on a different machine?

What are you trying to do here?

-Doug