Getting the pid of a connection.

Forum related to PostgreSQL

Moderators: gto, cipto_kh, EgonHugeist, olehs

paolo
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 15.10.2014, 15:54

Getting the pid of a connection.

Postby paolo » 15.10.2014, 15:58

Hello,

How can i get the pid of a postgresql connection ?

Thanks for help!

marsupilami
Gold Boarder
Gold Boarder
Posts: 591
Joined: 17.01.2011, 14:17

Re: Getting the pid of a connection.

Postby marsupilami » 19.10.2014, 10:13

Hello paolo,

maybe this will help you:
select pg_backend_pid();

Best regards,

Jan


Return to “PostgreSQL”

Who is online

Users browsing this forum: No registered users and 1 guest