Hello
There was a need for logging purposes to receive in a Java / Spring application using JDBC, the PID of the connection on the database side. I did not find such an opportunity in the JDBC sources.
Can you explain if there is such a possibility?
It seems to me to execute when establishing a connection each time a request
select pg_backend_pid()
not the best idea.
Best Regards,
Oleg Golovanov
Tel./WhatsApp +79067778133
Moscow, Russia