Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql print sessions using the database

select pid as process_id, 
       usename as username, 
       datname as database_name, 
       client_addr as client_address, 
       application_name,
       backend_start,
       state,
       state_change
from pg_stat_activity;
Source by dataedo.com #
 
PREVIOUS NEXT
Tagged: #postgresql #print #sessions #database
ADD COMMENT
Topic
Name
4+1 =