/*GET NAME OF USER DATABASE pg*/ SELECT inet_client_addr(); SELECT * FROM pg_stat_activity WHERE client_addr = inet_client_addr();